Skip to content

Commit 68b3259

Browse files
danieldnDaniel Nguyen
authored and
Daniel Nguyen
committed
Fix typo sh completion docs
1 parent b9460cc commit 68b3259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: shell_completions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ For example, if you want `kubectl get [tab][tab]` to show a list of valid "nouns
122122
Some simplified code from `kubectl get` looks like:
123123

124124
```go
125-
validArgs []string = { "pod", "node", "service", "replicationcontroller" }
125+
validArgs = []string{ "pod", "node", "service", "replicationcontroller" }
126126

127127
cmd := &cobra.Command{
128128
Use: "get [(-o|--output=)json|yaml|template|...] (RESOURCE [NAME] | RESOURCE/NAME ...)",
@@ -148,7 +148,7 @@ node pod replicationcontroller service
148148
If your nouns have aliases, you can define them alongside `ValidArgs` using `ArgAliases`:
149149

150150
```go
151-
argAliases []string = { "pods", "nodes", "services", "svc", "replicationcontrollers", "rc" }
151+
argAliases = []string { "pods", "nodes", "services", "svc", "replicationcontrollers", "rc" }
152152

153153
cmd := &cobra.Command{
154154
...

0 commit comments

Comments
 (0)