Skip to content

Autocomplete nested subcommands for help #370

Description

@C0urante

Created as a follow-up from #364

Right now, kcctl help re<TAB> automatically fills in the line with kcctl help res, and kcctl help res<TAB> shows two completion options: kcctl help restart and kcctl help resume. This is exactly how we want autocomplete to work for the help command.

However, once you select a subcommand, autocomplete stops being useful for subsequent nested subcommands. Typing kcctl help restart <TAB> should show two completion options: kcctl help restart connector and kcctl help restart task. Instead, the top-level subcommands (apply, config, delete, describe, etc.) are shown.

It'd be nice if we could get autocomplete working for nested subcommands as well. This will likely require an upstream contribution to picocli and/or some dirty hacks on our part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions