cobra-prompt
cobra-prompt copied to clipboard
Connect cobra and go-prompt
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)...