Skip to content

cli: extend flags completion #5343

Open
@ccoVeille

Description

@ccoVeille

Welcome

Your feature request related to a problem? Please describe

I would like to be able to complete the flag values such as --out-format=git<TAB> or --enable-only=use<TAB>

Right now, only the flags are completed, not their values

Describe the solution you'd like

The tool uses cobra, we could use

https://pkg.go.dev/github.com/spf13/cobra#Command.RegisterFlagCompletionFunc

Describe alternatives you've considered

Define my own completions locally 😅

Additional context

I took a look at the code, most flag will be "easy"

Some might require a small refactoring because of the helpers defined in the code

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementno decisionNo decision to fix or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions