From 26415e297846a2e82ab27eca1d70693042e07385 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 5 Jun 2022 17:17:13 -0700 Subject: [PATCH] formatting --- jc/shell_completions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jc/shell_completions.py b/jc/shell_completions.py index d5567959..a04ccc98 100644 --- a/jc/shell_completions.py +++ b/jc/shell_completions.py @@ -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():