cobra
cobra copied to clipboard
A Commander for modern Go CLI interactions
What happened: kubectl autocomplete is broken with the below error "bash: _get_comp_words_by_ref: command not found" with 2.14 Bash-completion version. From the bash-completion docs "_get_comp_words_by_ref" seems to be a deprecated API....
In my experience, not many flags actually require completion of files. Some have dynamic completions, but a great deal of them take free-form string parameters where no completion can be...
Under the install section in Cobra.dev documentation site, the installation command ```go get -u github.com/spf13/cobra/cobra``` provided is incorrect. The current behavior when you try installing cobra using that command is...
Cobra will print automatic suggestions when "unknown command" errors happen. It would be useful to have the same feature for flags.
I might be misunderstanding something or my approach is wrong but I am having trouble achieving something. # What I want I want to have a REQUIRED parameter on a...
Just want to start off by commending the project as a whole. Very nice library, have started using it for a tool I'm building and I'm already looking at replacing...
Apologies in advance, I am *not* a Go developer so I don't have a great understanding of the implementation details (this is my first time actually looking at code in...
Hi, we have a project where clear definitions were made, what the output of the CLI has to look like. We appreciate the automatic suggestions if a command was misspelled....
The Command's AddCommand function incorrectly includes hidden commands in its calculation of the maximum lengths needed to display correctly formatted usage information. See the following: [Command.go, line 1135](https://github.com/spf13/cobra/blob/master/command.go#L1135) Any Command...
Hi, my go lang version is (go1.11.13 linux/amd64) When I issued ; $ go get -u github.com/spf13/cobra@latest Errors occurred as like below; # github.com/spf13/cobra ../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:36:24: undefined: io.StringWriter ../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:404:26: undefined: io.StringWriter...