Skip to content

Commit ef82de7

Browse files
zefhemeleparis
authored andcommitted
Fixed code sample for bash completion (#687)
1 parent 0ab5b6b commit ef82de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ a custom flag completion function with cobra.BashCompCustom:
181181
182182
```go
183183
annotation := make(map[string][]string)
184-
annotation[cobra.BashCompFilenameExt] = []string{"__kubectl_get_namespaces"}
184+
annotation[cobra.BashCompCustom] = []string{"__kubectl_get_namespaces"}
185185
186186
flag := &pflag.Flag{
187187
Name: "namespace",

0 commit comments

Comments
 (0)