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

Hi, I'm trying to do something similar to how `taskwarrior` works. They have an interface like: ``` task 45 complete task 242 delete ``` In this case the 45 is...

kind/support
lifecycle/stale

Sometimes I want to manually define a way that an error is presented to the user (for instance to change color output and such). This PR adds a way to...

size/M

Fixed rules: * MD010 - Hard tabs * MD040 - Fenced code blocks should have a language specified * MD041 - First line in a file should be a top-level...

area/docs-generation
size/S

I'm not sure what I'm doing wrong here. I've installed cobra via: `go install github.com/spf13/cobra/cobra` Now, when I run a `cobra init`, anywhere I get just ``` Error: exit status...

kind/support

## Problem Today, we have wildy inconsistent license headers in our `go` source files. - I notice that many of the `go` files _do not_ have a license header. -...

admin
lifecycle/frozen

Other sections like Usage, Aliases, Available Commands, Flags and Additional help topics have two spaces indent.

size/XS

Documentation of Context() was fixed in #1639, especially the fact that the underlying ctx is set to context.Background when Execute() is called (otherwise returns nil). The documentation of SetContext() states...

size/XS

This commit adds flag groups which are mutually exclusive but required, as in, at least one of the flags in a group must be supplied. For example: ```go rootCmd.Flags().StringVarP(&authToken, "auth-token",...

size/M

This PR would escape bash v2 completions when there are only one completion left and use line-break to separate completions when passing them to `compgen`. This should fix issues described...

size/S

Close #1629

area/shell-completion
lifecycle/frozen
size/L