Whiteknight / StoneFruit

Cli commandlet host and execution environment
https://whiteknight.github.io/StoneFruit/
Apache License 2.0
0 stars 0 forks source link

Intermediate/Prefix help #17

Closed Whiteknight closed 3 years ago

Whiteknight commented 3 years ago

If we have a partial match on a multi-word verb, StoneFruit should call help with that prefix, and give a quick summary of available commands.

Whiteknight commented 3 years ago

The problem with this ticket is that, given a full argument list, it's not clear which part of the args are "prefix" and which are not until a handler is successfully found.

Whiteknight commented 3 years ago

I have implemented this in the v2 branch. The "help" handler has a -startswith flag to show verbs which start with the given prefix. The VerbNotFound event is updated to call this handler with the given word