feat: tab-complete --output-fields and enum flag values
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 41
- Forks
- 24
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 56
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.
Contributor guide
Assessment
This issue has not been assessed yet.