1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add shell completion build scripts

This commit is contained in:
Kelly Brazil
2022-07-05 16:41:23 -07:00
parent d0bde14a2a
commit eeee776555
6 changed files with 424 additions and 2 deletions

9
build-completions.py Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python3
# build Bash and Zsh completion scripts and add to the completions folder
from jc.shell_completions import bash_completion, zsh_completion
with open('completions/jc_bash_completion.sh', 'w') as f:
print(bash_completion(), file=f)
with open('completions/jc_zsh_completion.sh', 'w') as f:
print(zsh_completion(), file=f)