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

In some circumstances I would like to be able to call CheckErr with a different status code other than `1`, that said I'd like to implement a new function in...

For example, [iptables](https://manpages.debian.org/bookworm/iptables/iptables.8.en.html) flags support the "!" mark: ``` [!] -s, --source address[/mask][,...] Source specification. Address can be either a network name, a hostname, a network IP address (with /mask),...

This adds the ability to call `MarkFlagsRequired` and `MarkPersistentFlagsRequired` for n flags instead of one by one. Flags: ```go rootCmd.Flags().StringVarP(&Region, "region", "r", "", "AWS region (required)") rootCmd.Flags().StringVarP(&Failover, "failoverRegion", "f", "",...

## Summary If the flag can take values that contain the "@" character, then value substitution stops working after entering this character. ## Examples All available values ``` [$] clddev...

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4.0.0 to 6.0.1. Release notes Sourced from golangci/golangci-lint-action's releases. v6.0.1 What's Changed Changes fix: use 3-dots syntax for diff on push by @​ldez in golangci/golangci-lint-action#1040 Full Changelog:...

area/github
dependencies
github_actions

I am trying to write something that augments the docker-cli so if it fails the parsing I would normally let it run the existing docker command. What I wanted to...

Bumps [codelytv/pr-size-labeler](https://github.com/codelytv/pr-size-labeler) from 1.8.1 to 1.10.0. Release notes Sourced from codelytv/pr-size-labeler's releases. Support for ignoring file deletions The main change in this release is the ability to ignore file deletions...

area/github
dependencies
github_actions

Neither `SilenceUsage` nor `Hidden` are documented. `SilenceUsage` deserves a mention under [Alternative Error Handling](https://github.com/spf13/cobra#alternative-error-handling) because otherwise you'll get usage output on all errors. `Hidden` deserves mention under [Markdown Docs](https://github.com/spf13/cobra/blob/master/doc/md_docs.md) and...

kind/documentation
good-first-issue

`cobra` needs a security policy. Generally, this should define: - How users should report vulnerabilities - How cobra maintainers respond - How known security vulnerabilities and CVEs are communicated to...

admin
kind/security
lifecycle/frozen
help-wanted

On https://cobra.dev/ The link to "[Here](https://github.com/spf13/cobra/blob/master/cobra/README.md) you can find more information about it." is broken. 404: file not found.