elastic / elastic/cli

feat: tab-complete --output-fields and enum flag values

Open
#640 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.