mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
formatting
This commit is contained in:
@ -4,11 +4,12 @@ from string import Template
|
|||||||
from .cli_data import long_options_map
|
from .cli_data import long_options_map
|
||||||
from .lib import all_parser_info
|
from .lib import all_parser_info
|
||||||
|
|
||||||
# $(jc -a | jq -r '.parsers[] | .argument, .magic_commands[]?')
|
|
||||||
bash_template = Template('''\
|
bash_template = Template('''\
|
||||||
complete -W "${bash_arguments}${bash_options}${bash_commands}" jc
|
complete -W "${bash_arguments}${bash_options}${bash_commands}" jc
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
||||||
zsh_template = Template('''\
|
zsh_template = Template('''\
|
||||||
#compdef jc
|
#compdef jc
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ _jc() {
|
|||||||
_jc
|
_jc
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
||||||
def get_commands():
|
def get_commands():
|
||||||
command_list = []
|
command_list = []
|
||||||
for cmd in all_parser_info():
|
for cmd in all_parser_info():
|
||||||
|
Reference in New Issue
Block a user