Complete the zsh-completion.zsh script.

This commit is contained in:
Username404-59 2021-02-28 22:28:05 +01:00
parent ab71c08085
commit 111a4cc798
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 6 additions and 1 deletions

View File

@ -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
}