Yerbacon/scripts/completions/fish-completion.fish

7 lines
392 B
Fish

set -l commands --help -p --printresult
complete -c ybcon -f -a "(__fish_complete_suffix .ybcon)"
complete -c ybcon -x -s h -l help -d "Print the help screen"
complete -c ybcon -x -l version -d "Print the version"
complete -c ybcon -l target= -k -x -a 'lua js py' -d "Set the transpilation target"
complete -c ybcon -s p -l printresult -d "Enable printing the transpilation result to stdout"