cobra icon indicating copy to clipboard operation
cobra copied to clipboard

A Commander for modern Go CLI interactions

Results 294 cobra issues
Sort by recently updated
recently updated
newest added

In this PR, a GitHub Actions workflow is added for building a web site with [Hugo](https://gohugo.io/) and deploying it to GitHub Pages (branch `gh-pages`). - The content of the README...

kind/documentation
area/docs-generation
admin

Hello This PR adds an easy way to add colors to commands when they show up in the terminal. I personally would use this because amongst my commands, some are...

Improving the "required flag(s) "%s" not set" error message by not printing "(s)" if a single required flag is missing. If a single flag is missing, the error message is...

area/cobra-command
area/flags-args
size/M

Adding `args` to use line. Old: ``` ❯ ./test Error: accepts 1 arg(s), received 0 Usage: test [flags] Flags: -h, --help help for test -t, --toggle Help message for toggle...

size/S

Close #1156 Signed-off-by: Dong Gang

triage/needs-info

Now, when you try to run a Command with an unknown sub-command vs. an unknown flag, you'll get: ``` $ testcommand asdsa Error: unknown command "asdsa" for "testcommand" Run 'testcommand...

area/lib

This checks in the failing test that #1019 references, and proposes a fix to `LocalFlags()` not copying information about whether a flag has been parsed or not. If preferable, I...

kind/bug
area/flags-args
area/lib

Adds the possibility to group the commands in the help message. closes #836 closes #1271

kind/feature
triage/needs-info

It helps softwares using cobra's manpage generation to write tests. e.g.: an app can have unit test generating its man page in an afero virtual FS, and comparing the result...

area/docs-generation
size/XL

This PR enhance the man generation with the ability to add a COMMANDS section in generated man page for sub-commands. When a command has available sub-commands, the COMMANDS man section...

area/docs-generation
size/M