diff options
author | Yahav Itzhak <yahavi@users.noreply.github.com> | 2020-02-25 13:00:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 12:00:25 +0100 |
commit | b72607bc8e83c9ffc02409ae8a7fed6a8866e022 (patch) | |
tree | 308692312a00f8de5aa00a42e026348301b4ce01 /plugins/jfrog/jfrog.plugin.zsh | |
parent | 7290a08bf6098993b783877c8feab4c33cf49c38 (diff) | |
download | zsh-b72607bc8e83c9ffc02409ae8a7fed6a8866e022.tar.gz zsh-b72607bc8e83c9ffc02409ae8a7fed6a8866e022.tar.bz2 zsh-b72607bc8e83c9ffc02409ae8a7fed6a8866e022.zip |
Add JFrog CLI plugin (#8250)
Diffstat (limited to 'plugins/jfrog/jfrog.plugin.zsh')
-rw-r--r-- | plugins/jfrog/jfrog.plugin.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/jfrog/jfrog.plugin.zsh b/plugins/jfrog/jfrog.plugin.zsh new file mode 100644 index 000000000..064ffa2db --- /dev/null +++ b/plugins/jfrog/jfrog.plugin.zsh @@ -0,0 +1,10 @@ +_jfrog() { + local -a opts + opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}") + _describe 'values' opts + if [[ $compstate[nmatches] -eq 0 && $words[$CURRENT] != -* ]]; then + _files + fi +} + +compdef _jfrog jfrog
\ No newline at end of file |