jfrog.plugin.zsh 258 B

12345678910
  1. _jfrog() {
  2. local -a opts
  3. opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}")
  4. _describe 'values' opts
  5. if [[ $compstate[nmatches] -eq 0 && $words[$CURRENT] != -* ]]; then
  6. _files
  7. fi
  8. }
  9. compdef _jfrog jfrog