Fixed code sample for bash completion

This commit is contained in:
Zef Hemel 2018-04-25 16:44:30 +02:00 committed by GitHub
parent 0ab5b6bcfc
commit 35c4666302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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