Open C-Otto opened 8 months ago
Remind me how it works in your old shell version.
--arg1
--arg1
In my case I'm typing the command without completion, then add the prefix of the value before pressing TAB:
someCommand val<tab>
With the old version this changes to someCommand value
(assuming val
is completed to value
). I only have to press TAB once.
In your example it would be complete sample4 E<tab>
, which should show the three possible values (or complete if only one option fits).
Right thanks for pointing it out. It indeed works via positional argument so completion should work as well.
@C-Otto - I'm also hitting this issue, did you find a workaround?
No
Also seeing this and Im using annotations @ShellOption - does the framework have the notion of argument only commands (e.g commands that just take arguments that aren't labelled with option tags) ? Is this on the roadmap ? Otherwise the autocompletion works very well, thanks for this !
I migrated my code from version 2.0 to 3.1.5. Both with the new
@Command
syntax and with the old@ShellMethod
variant I fail to get tab completion to work when I do NOT specify the parameter name via "--value". Everything works as expected when I add "--value" before the to-be-completed value.This works:
someCommand --value val<tab>
This does not work:
someCommand val<tab>
With
@ShellMethod
(BarProvider implementsValueProvider
):With
@Command
(BarProvider implementsCompletionProvider
):Am I missing something?
PS: Thanks for the resurrection of this project!