cobra
cobra copied to clipboard
A Commander for modern Go CLI interactions
## Disclaimers First and foremost, I must say that this proposal, any sound solution to it and all the potential questions and problems raised on the way of finding one,...
Similar to `Command.Annotations` add a `map[string]interface{}` to store data that shares the lifetime of the `Command`. related #2019
so i have this ``` cli myCommand -myflag args[]string ``` and i have f for my shorthand when i use the name it works but when i was using ```...
Dear maintainers and communities interested in this project: Our team is currently developing a tool for automatically generating PR **checklists** in Pull Request Template. The tool generates a set of...
Please see https://github.com/spf13/cobra/issues/2077 for description.
In the bash shell we used to print ActiveHelp messages on every tab-press. In the example below, notice the `Command help` line which is ActiveHelp: ``` bash-5.1$ tanzu context u[tab]...
Say I have ``` serviceLogsCmd.Flags().BoolVarP(&serviceLogsFollow, "follow", "f", true, "Follow log output") ``` It would be nice to have a `--no-follow` automatically generated.
Bash 5.0 and lower do not support process substitutions `
# Overview Fixes #1918. The auto-implemented subcommands (help and completion) did't work when MarkPersistentRequiredFlag() called on root command. So I set DisableFlagParsing true for HelpCommand and CompletionCommand (bash, zsh, fish,...
Fix: Allows capturing cmd output and errors The current behavior of OutOrStderr() is inconsistent. This PR introduces a feature to achieve the desired behavior without causing any breaking changes. ---...