From ef82de70bb3f60c65fb8eebacbb2d122ef517385 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 27 Apr 2018 15:45:50 +0200 Subject: [PATCH] Fixed code sample for bash completion (#687) --- bash_completions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.md b/bash_completions.md index 8d01f45..e79d476 100644 --- a/bash_completions.md +++ b/bash_completions.md @@ -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",