From b72607bc8e83c9ffc02409ae8a7fed6a8866e022 Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Tue, 25 Feb 2020 13:00:25 +0200 Subject: Add JFrog CLI plugin (#8250) --- plugins/jfrog/jfrog.plugin.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/jfrog/jfrog.plugin.zsh (limited to 'plugins/jfrog/jfrog.plugin.zsh') 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 -- cgit v1.2.3-70-g09d2