Yerbacon/scripts/completions/zsh-completion.zsh

18 lines
745 B
Bash

#compdef ybcon
completeyfile='filename:_path_files -/ -g "*.ybcon"'
_ybcon() {
_arguments \
'( - 0)'{-h,--help}'[Print the help screen]' \
'( - 0)'--version'[Print the version]' \
'( - 0)'--buildInfo'[Print informations about how the ybcon executable was built]' \
--parallel'[Transpile files in parallel mode]' \
--target='[Set the transpilation target]:language:(lua js py)' \
--newlines='[Enable or disable new lines]:state:(on off)' \
{-p,--printresult}'[Enable printing the transpilation result to stdout]' \
{-t,--text}'[Transpile text provided after this argument (implies -p)]' \
{-o,--output}'[Output the transpiled file(s) to the specified directory]' \
"*:$completeyfile"
return 0
}
_ybcon