oclif / oclif/plugin-autocomplete

Does not work for second flag

Open
#319 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.