shell completion for kustomize commands

This commit is contained in:
Phillip Wittrock
2019-12-06 15:45:01 -08:00
parent 46be801a48
commit 2eacbeaa87
8 changed files with 153 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
## install-completion
Install shell completion.
### Synopsis
Install shell completion for kustomize commands and flags -- supports bash, fish and zsh.
kustomize install-completion
Registers the completion command with known shells (e.g. .bashrc, .bash_profile, etc):
complete -C /Users/USER/go/bin/kustomize kustomize
Because the completion command is embedded in kustomize directly, there is no need to update
it separately from the kustomize binary.
To uninstall shell completion run:
COMP_UNINSTALL=1 kustomize install-completion