oclif / plugin-autocomplete

autocomplete plugin for oclif
MIT License
83 stars 31 forks source link

Does not work for second flag #319

Open pzombade opened 2 years ago

pzombade commented 2 years ago

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
cristiand391 commented 1 year ago

Hey, sorry for the late reply.

This looks like a bash comp bug. zsh/powershell works good. Thanks for reporting!

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-13104321