summaryrefslogtreecommitdiff
path: root/plugins/jfrog/jfrog.plugin.zsh
blob: 1441bc107a5d6c55da2ecb0e44c41aac5c462163 (plain)
1
2
3
4
5
6
7
8
9
10
11
_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
compdef _jfrog jf