Skip to content

Completion for option values (e.g., --format={rich,tree,yaml,json}) #157

@holmboe

Description

@holmboe

Enable shell completion for option values.

Already implemented:

  • --format now uses OutputFormat enum with values: rich, tree, yaml, json
    • Shell completion shows available values when pressing Tab
    • Invalid values are rejected with helpful error message
    • strict is accepted as hidden alias for yaml (backwards compatibility)

Still needed:

  • --ascii and --hyperlink: always, auto, never
  • --log-level: DEBUG, INFO, WARNING, ERROR, CRITICAL

These could use enums similar to OutputFormat to enable shell completion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions