cobra-prompt icon indicating copy to clipboard operation
cobra-prompt copied to clipboard

Connect cobra and go-prompt

Results 3 cobra-prompt issues
Sort by recently updated
recently updated
newest added

If PersistFlagValues is false, cobra-prompt restore all flags to default value after every command execution. [cobra-prompt.go](https://github.com/stromland/cobra-prompt/blob/main/cobra-prompt.go) ```go func findSuggestions(co *CobraPrompt, d *prompt.Document) []prompt.Suggest { //... addFlags := func(flag *pflag.Flag) {...

Hi! There is currently no support for flag value completions. To achieve this, We need to access the `flagCompletionFunctions` map in the cobra package and retrieve the flag completion functions...

Hi Cobra is fully POSIX-compliant, in which the argument -- terminates all options; any following arguments are treated as non-option arguments, even if they begin with a hyphen. (See [here](https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html)...