argocd.plugin.zsh
418 bytes
1# Autocompletion for argocd.
2if (( ! $+commands[argocd] )); then
3 return
4fi
5
6# If the completion file doesn't exist yet, we need to autoload it and
7# bind it to `argocd`. Otherwise, compinit will have already done that.
8if [[ ! -f "$ZSH_CACHE_DIR/completions/_argocd" ]]; then
9 typeset -g -A _comps
10 autoload -Uz _argocd
11 _comps[argocd]=_argocd
12fi
13
14argocd completion zsh >| "$ZSH_CACHE_DIR/completions/_argocd" &|