Skip to content

Add getters for flagCompletionFunctions map to support interactive flag completion suggestions in cobra-prompt #1942

@avirtopeanu-ionos

Description

@avirtopeanu-ionos

The flagCompletionFunctions map (https://github.com/spf13/cobra/blame/main/completions.go#L36) is used to store flag completion functions for a given command

I am working on extending the cobra-prompt library (https://github.com/stromland/cobra-prompt/) to add support for interactive flag completion suggestions. To achieve this, I need to access the flagCompletionFunctions map and retrieve the flag completion functions for a given command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions