Skip to content

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

Description

@margaretjgu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions