cobra
cobra copied to clipboard
A Commander for modern Go CLI interactions
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.
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...
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...
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...
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....
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
# 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...
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...
Want to add a getting started guide for a more flat learning curve
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:...