From 111a4cc798c32a1675b0f6663bd53da0b9ee48e9 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 28 Feb 2021 22:28:05 +0100 Subject: [PATCH] Complete the zsh-completion.zsh script. --- scripts/completions/zsh-completion.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/completions/zsh-completion.zsh b/scripts/completions/zsh-completion.zsh index 506cf4a..faa1501 100644 --- a/scripts/completions/zsh-completion.zsh +++ b/scripts/completions/zsh-completion.zsh @@ -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 }