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

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. Release notes Sourced from actions/cache's releases. v4.0.0 What's Changed Update action to node20 by @​takost in actions/cache#1284 feat: save-always flag by @​to-s in actions/cache#1242...

area/github
dependencies
github_actions

ArgLentAtDash currently only looks for the first instance of `--` for an option (ie. only for "long" options) and I believe that this functionality should work for `-` as well,...

Some old patches I've had around, refreshed.

area/docs-generation

We capture the commandline tokens using fish's "commandline --tokenize" (-o). That function turns echo 'some argument $(123)' into two arguments while removing the quotes echo some argument $(123) Later we...

Add a wrapper for `PositionalArgs` that supplements errors with usage information. The error messages provided by the `PositionalArgs` functions is quite terse, e.g. > accepts *n* arg(s), received *m* In...

See #1134 ## Features - Recipe to extract new translations from the Go code: `make i18n_extract` - Using widely supported `gettext` format - Embedded lightweight `MO` files - Detect language...

kind/feature
area/cobra-command

### What happened? I have a program (`grafana-manager`) that uses `cobra 1.8.0` for command line handling and generating the necessary shell completion for `fish-shell`. If I run my command as...

This PR aims to add an arbitrary `map[string]any` field to the `Command` type, so that consumer projects/plugins can store data pertaining to a given command, and for this data to...

kind/feature
area/cobra-command

It seems like flags shouldn't be found for sub-commands but sometimes they are: ``` $ helm --starter . Error: unknown flag: --starter $ helm --starter . create a Creating a...

The context passed to the root command should propagate to its children not only on the first execution but also subsequent calls. Calling the same command multiple times is common...

kind/bug