Skip to content

Commit 6a97506

Browse files
committed
minor reordering
1 parent 0e5d223 commit 6a97506

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

shtab/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ def command_list(prefix, options):
599599

600600
preamble = """\
601601
# Custom Preamble
602-
603602
{}
604603
605604
# End Custom Preamble
@@ -615,12 +614,11 @@ def command_list(prefix, options):
615614
616615
# AUTOMATCALLY GENERATED by `shtab`
617616
618-
${command_cases}
619-
620617
${command_commands}
621618
622619
${command_options}
623620
621+
${command_cases}
624622
${preamble}
625623
626624
typeset -A opt_args

tests/test_shtab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def test_prog_scripts(shell, caplog, capsys):
9191
assert script_py == ["complete -o filenames -F _shtab_shtab script.py"]
9292
elif shell == "zsh":
9393
assert script_py == [
94-
"#compdef script.py", "'*::: :->script.py'", "script.py)",
95-
"_describe 'script.py commands' _commands"]
94+
"#compdef script.py", "_describe 'script.py commands' _commands",
95+
"'*::: :->script.py'", "script.py)"]
9696
elif shell == "tcsh":
9797
assert script_py == ["complete script.py \\"]
9898
else:

0 commit comments

Comments
 (0)