Skip to content

Commit

Permalink
minor reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Apr 19, 2022
1 parent 0e5d223 commit 6a97506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions shtab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ def command_list(prefix, options):

preamble = """\
# Custom Preamble
{}
# End Custom Preamble
Expand All @@ -615,12 +614,11 @@ def command_list(prefix, options):
# AUTOMATCALLY GENERATED by `shtab`
${command_cases}
${command_commands}
${command_options}
${command_cases}
${preamble}
typeset -A opt_args
Expand Down
4 changes: 2 additions & 2 deletions tests/test_shtab.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def test_prog_scripts(shell, caplog, capsys):
assert script_py == ["complete -o filenames -F _shtab_shtab script.py"]
elif shell == "zsh":
assert script_py == [
"#compdef script.py", "'*::: :->script.py'", "script.py)",
"_describe 'script.py commands' _commands"]
"#compdef script.py", "_describe 'script.py commands' _commands",
"'*::: :->script.py'", "script.py)"]
elif shell == "tcsh":
assert script_py == ["complete script.py \\"]
else:
Expand Down

0 comments on commit 6a97506

Please sign in to comment.