Complete the zsh-completion.zsh script.
This commit is contained in:
parent
ab71c08085
commit
111a4cc798
|
@ -1,6 +1,11 @@
|
|||
#compdef ybcon
|
||||
completeyfile='filename:_path_files -/ -g "*.ybcon"'
|
||||
_ybcon() {
|
||||
_arguments '-h[Print the help screen]' '--help[Print the help screen]' '--version[Print the version]' '-p[Enable printing the transpilation result to stdout]:filename:_path_files -/ -g "*.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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue