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

I have written a utility and the utility itself has several sub-commands that themselves have hundreds of sub-commands, that are generated via meta-data that can allow for very powerful usage...

Completion support for [Nushell](https://nushell.sh). Besides the tests included, I have also tested against minikube.

kind/feature
area/shell-completion
area/docs-generation
area/github

Implement the ability to generate Asciidoc documentation.

area/docs-generation

We are using cobra/doc to generated md files for our commands. Every time we re-generated the docs, all the md files were changed due to the date change here: ```...

If there are errors parsing the arguments to a command, a custom error can be output by way of the `cmd.SetFlagErrorFunc` function. However, this only applies if there is an...

when excuting a root comand , cobra returns success on typos and exit code is 1. ``` ➜ ~ helm notfoundsubcommand Error: unknown command "notfoundsubcommand" for "helm" Run 'helm --help'...

kind/bug
area/cobra-command
triage/needs-info

When using i.e. `doc.GenMarkdownTree`, any deprecated commands do not get output, which means that when deprecating a command you would end up losing the documentation for it, whereas it may...

When running `GenMarkdownCustom` with `DisableAutoGenTag=true` an extra newline is added to the end of the file. This can be seen in the md file that is output and tools like...

input `kubectl edit` and a vim-style screen appears,how can I do this using Cobra?there is no example on internet.and I tried govim,read kubectl opensource code,and it`s hard to write like...

## Overview This PR is about #1911. Sorry, I missed that a PR(#1912) has already been submitted regarding this Issue. However, it appears that a PR has not been updated,...

kind/feature
lgtm