Yerbacon/scripts/completions/zsh-completion.zsh

12 lines
320 B
Bash

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