oclif / oclif/plugin-autocomplete
Does not work for second flag
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 95
- Forks
- 35
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented command, mycli --one -<TAB>, and trace the autocomplete handling for flags after one flag has been entered. The change is done when the remaining flags, such as --two and --three, are listed for completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 40/100