Leonhard Stemplinger
Leonhard Stemplinger
My attempt at a fix for #413 to not drop brackets at the end of the flag value.
Code Example: ```go package main import ( "fmt" "github.com/spf13/pflag" ) func main() { fs := pflag.NewFlagSet("test", pflag.PanicOnError) fs.StringToString("testflag", map[string]string{}, "") fs.Set("testflag", "x=[]") fmt.Println(fs.Lookup("testflag").Value.String()) result, _ := fs.GetStringToString("testflag") fmt.Println(result) } ```...
Currently the Powershell completion script generated by Cobra does not work in [constrained mode](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-5.1#constrainedlanguage-mode) because creating CompletionResult Objects is blocked there. This adds a check to the script that returns...