cobra
cobra copied to clipboard
A Commander for modern Go CLI interactions
This is needed for[ v3 of `setup-go` to check the latest patch version of Go](https://github.com/actions/setup-go#check-latest-version). Related to https://github.com/spf13/cobra/pull/1660
Since Cobra will provide suggestions that are less than or equal to this value, it is a maximum, not a minimum. I just noticed this and the cognitive dissonance was...
When using go 1.18, the format "go install github.com/kyoh86/richgo@latest" is needed (go get no longer works). This PR simply updates the warning printed by the Makefile to use "go install"...
This let's handle all flag errors and decide how to print them on the fly
- CVE-2022-28948 - GHSA-hp87-p4gw-j4gq
- Have `command.Print*()` print to stdout, and print errors & warnings to stderr - Deprecate `command.OutOrStderr()` - Handle errors in built-in help command *Warning:* backwards-incompatible. Fixes https://github.com/spf13/cobra/issues/1708
In the current code, with a version set, `app help` does not display the switch option `--version`, while `app --help` does. * Fix missing '--version' flag from help command *...
Here's a bunch of bash code cleanups I made on the side while working on the performance improvements. See individual commits and messages for details. Some of these are also...
Added Asciidoc as a generation target for documentation. Based off the markdown, additional tests are added to ensure the nested file generation.