1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-05-09 14:57:25 +00:00

Fixed code sample for bash completion ()

This commit is contained in:
Zef Hemel 2018-04-27 15:45:50 +02:00 committed by Eric Paris
parent 0ab5b6bcfc
commit ef82de70bb

View file

@ -181,7 +181,7 @@ a custom flag completion function with cobra.BashCompCustom:
```go
annotation := make(map[string][]string)
annotation[cobra.BashCompFilenameExt] = []string{"__kubectl_get_namespaces"}
annotation[cobra.BashCompCustom] = []string{"__kubectl_get_namespaces"}
flag := &pflag.Flag{
Name: "namespace",