Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#640 0 comments 0 reactions 1 assignee View on GitHub

@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

enhancement

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

Open the contributing guide

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.

More from elastic/cli

All issues in elastic/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.