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 command.go func (c *Command) ExecuteC() (cmd *Command, err error) { ... // We have to pass global context to children command // if context is present on the parent...

Following #1428, this PR is a subset of #1245. This PR adds the minimal configuration and a CI workflow to build a documentation site using hugo and push it to...

area/github

```console Usage: procstrm (process-stream) [flags] Flags: -C, --config-file string Configuration file to load -d, --drone-id int Drone id -f, --flight-id int Flight id -h, --help help for procstrm -i, --input-dir...

kind/feature
area/flags-args
triage/needs-info

It seems to me based on my usage that it would be nice to have a variable called `EnableFlagSorting`, similar to the already existing `EnableCommandSorting`. This would avoid having to...

> ➜ borzoi go get -u github.com/spf13/cobra/cobra go: module github.com/spf13/cobra@upgrade found (v1.4.0), but does not contain package github.com/spf13/cobra/cobra While trying to install cobra, i ran into the above error. The...

kind/bug
kind/documentation
triage/needs-info

Hi 👋🏼 The CONTRIBUTING.md file doesn't mention the requirements (golangci-lint and richgo), we should add those for a smoother experience. And while we are on that, when I tried to...

kind/documentation

I have a root command with persistent flag and a subcommand with a local flag. When executing subcommand, I seem to be unable to pass the local flag. No matter...

This would allow to support fuzzy completions: Lets say `ValidArgsFunction` return `[]string{"some_arg", "some_arg_thats_long"}` ```bash $ mycmd arg ``` I should be presented with the autocomplete options: ``` some_arg some_arg_thats_long ```...

area/shell-completion

golang.org/x/text in v0.3.7 is vulnerable to CVE-2022-32149. Could I ask for an upgrade to v0.3.8 that solves this issue?

kind/security

Say you have some command ``` cmd := &cobra.Command{ Use: "context", Aliases: []string{"ctx"}, } ``` Then completing `ct` will not work: ``` prog __complete ct :4 Completion ended with directive:...

area/shell-completion