Skip to content

Commit

Permalink
Update shell_completions.md (#1907)
Browse files Browse the repository at this point in the history
align documentation with the code : completions.go:452
  • Loading branch information
gusega authored Feb 9, 2023
1 parent 8b8ee87 commit 87ebcd8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions shell_completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,7 @@ cmd := &cobra.Command{
}
```

The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by
the completion algorithm if entered manually, e.g. in:

```bash
$ kubectl get rc [tab][tab]
backend frontend database
```

Note that without declaring `rc` as an alias, the completion algorithm would not know to show the list of
replication controllers following `rc`.
The aliases are shown to the user on tab completion only if no completions were found within sub-commands or `ValidArgs`.

### Dynamic completion of nouns

Expand Down

0 comments on commit 87ebcd8

Please sign in to comment.