perpetualintelligence/terminal

Default root command

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
If the terminal just has 1 root then it becomes redundant to pass the root or driver command all the time. Need the ability to apply the default driver if not specified automatically.

e.g. dotnet build ".csporj"
TerminalOptions.DefaultDriver = "dotnet";
build "
.csporj" -> dotnet build "*.csporj"

Notes for implementation:

  • Feature only available for 1 root (throws exception if this feature is enabled with multiple roots)
  • Excludes special commands agnostic to command hierarchy (e.g., exit, cls, etc...)