#compdef scw
_scw () {
	local output
	output=$(scw autocomplete complete zsh -- ${CURRENT} "${words[@]}")
	local opts=('-S' ' ')
	if [[ $output == *= ]]; then
		opts=('-S' '')
	fi
	local -a matches=("${(@f)output}")
	_describe 'resources' matches "${opts[@]}"
}
if [[ "$funcstack[1]" == "_scw" ]]; then
	_scw "$@"
else
	autoload -U compinit && compinit
	compdef _scw scw
fi
