Yerbacon/scripts/completions/zsh-completion.zsh

13 lines
381 B
Bash
Raw Normal View History

#compdef ybcon
completeyfile='filename:_path_files -/ -g "*.ybcon"'
_ybcon() {
_arguments \
'( - 0)'{-h,--help}'[Print the help screen]' \
'( - 0)'--version'[Print the version]' \
--target='[Set the transpilation target]:language:(lua js py)' \
{-p,--printresult}'[Enable printing the transpilation result to stdout]' \
"*:$completeyfile"
return 0
}
_ybcon