jfrog.plugin.zsh 277 B

1234567891011
  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
  10. compdef _jfrog jf