plugin-autocomplete
plugin-autocomplete copied to clipboard
Does not work for second flag
The autocomplete supports only one flag. It should also support autocompletion for rest of the flags.
one: Flags.string({
description: 'The first flag',
}),
two: Flags.string({
description: 'The second flag',
}),
three: Flags.string({
description: 'The third flag',
})
Type following command. Then type - followed by tab press (to see the available flags i.e. --two ---three.)
mycli --one -<TAB>
Observation: Autocomplete does not list any flags.
Expectation: All the flags should be listed for the given command.
$ mycli --one
--two --three
Hey, sorry for the late reply.
This looks like a bash comp bug. zsh/powershell works good. Thanks for reporting!
This issue has been linked to a new work item: W-13104321