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

Hi there! It would be great if Cobra provided built-in support for customizing flag value names in help messages Right now the following cmd flag: ``` cmd.Flags().StringArrayVarP(&forwardProxies, "forward", "F", nil,...

area/flags-args
area/docs-generation

The [user guide](https://github.com/spf13/cobra/blob/main/user_guide.md#version-flag) says that the automatic `--version` flag is a top-level flag on the root command: > Cobra adds a top-level '--version' flag if the Version field is set...

kind/bug
area/flags-args
kind/cleanup

We are no longer actively maintaining bash completion v1 in favor of its more rich v2 version. Previously, using bash completion v2 required projects to be aware of its existence...

kind/feature

## Context I'm trying to create a _build helper_ for multiple tools. The command hierarchy would be such as: ``` $ mycmd build tool1 $ mycmd build tool2 ``` I...

I'm currently trying out the cobra framework and stumbled upon an issue with dynamic autocompletion and `cmd.ArgsLenAtDash()`. I'm trying to provide autocompletion for a predefined set of possible positional parameters...

> **Work In Progress** > Incomplete but good enough for my own use. > Overly big dependencies, needs some scrubbing. ## How - Detects language from `ENV` (`LANGUAGE` > `LC_ALL`...

kind/feature

As well as the excellent support we've got built-in for rendering documentation, it'd be handy to be able to further customise the output. For instance, I'd quite like to add...

Hi, Is there simple way to handle time flags? For example, I use the following flags in my cli: ``` ./a.out --start="2018-09-08 12:00:00" --end="2018-09-09 12:00:00" ``` I have not found...

kind/feature
area/flags-args

I would like to support multiple languages for my CLI using cobra. Implementation for commands is no problem, but is it correct that there is currently no support for the...

good-first-issue

This PR long ago - #1431 extracted parts of the `README.md` into new `user_guide.md`, and offered links in the former to content in the latter. The current [README.md](https://github.com/spf13/cobra/blob/dcb405a9399ed307eaa0e50f5cb1c290c8979dd4/README.md) contains this...