feat(completion) support batsh command

This commit is contained in:
EmilyGraceSeville7cf 2024-10-16 05:32:56 +10:00
parent 1e2368f609
commit 1c00ad5aea

View file

@ -0,0 +1,12 @@
set -l command batsh
complete -c $command -f
complete -c $command -s h -l help \
-a 'pager\tdefault plain groff' \
-d 'Show help'
complete -c $command -s v -l version -d 'Show version'
complete -c $command \
-a 'bash\t"Compile to Bash" batsh\t"Format file" winbat\t"Compile to Batch"'