argo cd
Summary
Section titled “Summary”Installs the Argo CD CLI (argocd) from a GitHub release binary and generates its Zsh completion file on clone and pull.
Syntax / Usage
Section titled “Syntax / Usage”zi for \ as'completions' \ atclone' ./argocd* completion zsh > _argocd' \ atpull'%atclone' \ from'gh-r' \ if'[[ "$(uname -m)" == x86_64 ]]' \ sbin'argocd* -> argocd' \ argoproj/argo-cdDetails
Section titled “Details”from'gh-r'— downloads the binary from GitHub Releases.as'completions'— tells Zinit this plugin provides completions rather than a script to source.atclone— runs./argocd* completion zsh > _argocdafter the initial download to generate the_argocdcompletion file.atpull'%atclone'— repeats the same command on every update so completions stay in sync.if'[[ "$(uname -m)" == x86_64 ]]'— gates loading to x86_64 machines only; omit or adjust for other architectures.sbin'argocd* -> argocd'— creates a shim namedargocdpointing to the downloaded binary (requires thezinit-annex-bin-gem-nodeannex).
The annex zdharma-continuum/zinit-annex-bin-gem-node must be loaded before this recipe.
Examples
Section titled “Examples”# prerequisite — load once at the top of .zshrczinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
zi for \ as'completions' \ atclone' ./argocd* completion zsh > _argocd' \ atpull'%atclone' \ from'gh-r' \ if'[[ "$(uname -m)" == x86_64 ]]' \ sbin'argocd* -> argocd' \ argoproj/argo-cdCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- The
ifcondition restricts installation to x86_64. On Apple Silicon or other architectures the plugin will silently skip loading. - The
sbinice requireszinit-annex-bin-gem-nodeto be loaded first; without it the shim is not created andargocdwill not be on$PATH.