Skip to content

Allow conditional private commands #673

@wouterfranken

Description

@wouterfranken

Description

Hello,

Thanks for this great tool!

I have a CLI that operates in two modes: normal or interactive (using rlwrap). Some of my commands only make sense in one of the two modes, eg. 'quit' to exit out of the interactive mode or 'interactive' to enter interactive mode. It would be useful to hide these commands from help and from completions on some dynamic condition (eg. an environment variable that is set or not). This would avoid any clutter, both in completion and in the help message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions