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

The `see_also` section for child commands would include only the name of command. This adds the whole path, similar to how it's done for the other documentation formats.

area/docs-generation
size/XS

As mentioned in [this issue](https://github.com/spf13/cobra/issues/1484), I am trying to use cobra as a command parser to parse the text sent to a bot, which means, a `Command.ExecuteContext()` would be called...

area/flags-args
area/lib

If flag.NoOptDefVal is not set, the following two variations work 1. myapp --myflag myvalue 2. myapp --myflag=myvalue But if flag.NoOptDefVal is set, (1) does not work. Only (2) works. From...

kind/bug
area/flags-args

This PR adds to the group validation capability that came in the Spring release with the advent of `MarkFlagsRequiredTogether` and `MarkFlagsMutuallyExclusive` by adding 2 further group validation options (new methods...

size/XL

If I declare a flag `--flag` on the root command then declare the same local flag on a sub command, the local flag shadows the persistent one. This seems reasonable....

kind/bug
area/flags-args
lifecycle/stale

API v3 was released in 2019 [1]. Update from the v2 API, no changes to the packages's use needed and no breaking changes expected. [1] https://ubuntu.com/blog/api-v3-of-the-yaml-package-for-go-is-available

area/docs-generation
size/XS

# Labels, Milestones, Triaging ⚡ The following is a living issue, pinned to the top of `cobra`'s GitHub issues for wide visibility, that represents the current labeling, triaging, milestone, and...

admin
lifecycle/frozen

Hello maintainers and community! I am developing a CLI using cobra for my team's internal use. I expect somewhere between 5 to 50 people to use it actively. The purpose...

kind/support

Want to add a getting started guide for a more flat learning curve

kind/documentation

Hi folks, just wanted to learn how my cli built on cobra can read stdin as the parameter. For example: ``` my_cli -c a.config ``` should be the same as:...

kind/support