feat: tab-complete --output-fields and enum flag values
@margaretjgu is already working on this.
Since Sep 22, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Start with the __complete callback and the existing dynamic completion for commands, flags, and --use-context values. Trace how command output schemas and flag enums are exposed, then add callback tests showing top-level output fields and enum values when a schema exists, while confirming schema-less commands and cluster index completion are skipped.
Written by the indexing model from the issue text.
Description
The dynamic completer already does commands, flags, and --use-context values.
Extend __complete so --output-fields offers top-level keys from the command's output schema when we have one, and enum flags offer their schema enum values.
Skip if the command has no schema. Do not call the cluster to complete index names in MVP.
Acceptance: completing --output-fields on elastic status offers services (or whatever the schema says). Test with the __complete callback.
- Dominant language
- TypeScript
- Stars
- 43
- Forks
- 24
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 61
Contributor guide
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.
More from elastic/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
cloud enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100