From d8184d32696bee36f682bcb3ace5642af54cd7ad Mon Sep 17 00:00:00 2001 From: Daniel Nguyen Date: Tue, 26 Apr 2022 17:39:55 -0700 Subject: [PATCH] Fix typo sh completion docs (#1678) --- shell_completions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell_completions.md b/shell_completions.md index 33a4c65a5..be17bf8c3 100644 --- a/shell_completions.md +++ b/shell_completions.md @@ -122,7 +122,7 @@ For example, if you want `kubectl get [tab][tab]` to show a list of valid "nouns Some simplified code from `kubectl get` looks like: ```go -validArgs []string = { "pod", "node", "service", "replicationcontroller" } +validArgs = []string{ "pod", "node", "service", "replicationcontroller" } cmd := &cobra.Command{ Use: "get [(-o|--output=)json|yaml|template|...] (RESOURCE [NAME] | RESOURCE/NAME ...)", @@ -148,7 +148,7 @@ node pod replicationcontroller service If your nouns have aliases, you can define them alongside `ValidArgs` using `ArgAliases`: ```go -argAliases []string = { "pods", "nodes", "services", "svc", "replicationcontrollers", "rc" } +argAliases = []string { "pods", "nodes", "services", "svc", "replicationcontrollers", "rc" } cmd := &cobra.Command{ ...