1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

formatting

This commit is contained in:
Kelly Brazil
2022-06-05 17:17:13 -07:00
parent d849bd3b66
commit 26415e2978

View File

@ -4,11 +4,12 @@ from string import Template
from .cli_data import long_options_map
from .lib import all_parser_info
# $(jc -a | jq -r '.parsers[] | .argument, .magic_commands[]?')
bash_template = Template('''\
complete -W "${bash_arguments}${bash_options}${bash_commands}" jc
''')
zsh_template = Template('''\
#compdef jc
@ -30,6 +31,7 @@ _jc() {
_jc
''')
def get_commands():
command_list = []
for cmd in all_parser_info():