Skip to content

Commit 87ebcd8

Browse files
authored
Update shell_completions.md (#1907)
align documentation with the code : completions.go:452
1 parent 8b8ee87 commit 87ebcd8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

shell_completions.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,7 @@ cmd := &cobra.Command{
162162
}
163163
```
164164

165-
The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by
166-
the completion algorithm if entered manually, e.g. in:
167-
168-
```bash
169-
$ kubectl get rc [tab][tab]
170-
backend frontend database
171-
```
172-
173-
Note that without declaring `rc` as an alias, the completion algorithm would not know to show the list of
174-
replication controllers following `rc`.
165+
The aliases are shown to the user on tab completion only if no completions were found within sub-commands or `ValidArgs`.
175166

176167
### Dynamic completion of nouns
177168

0 commit comments

Comments
 (0)