Skip to content
Myr

Fixed code sample for bash completion (#687)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Zef Hemel · committed by Eric Paris · parent 0ab5b6b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bash_completions.md+1 added-1 removed
179 unmodified lines
180a custom flag completion function with cobra.BashCompCustom:181182```go183 annotation := make(map[string][]string)184 annotation[cobra.BashCompFilenameExt] = []string{"__kubectl_get_namespaces"}184 annotation[cobra.BashCompCustom] = []string{"__kubectl_get_namespaces"}185186 flag := &pflag.Flag{187 Name: "namespace",188 Usage: usage,
33 unmodified lines