Skip to content
Myr

add back semicolons in fish script

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Peter Dragun · committed by David Lord · parent a260ca6 · Browse files · 1 file+14 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−14 removed

  • other:+14 added−14 removed

1 file+14 added−14 removed

modified:src/click/shell_completion.py+14 added-14 removed
165 unmodified lines
166fi167"""168169_SOURCE_FISH = """\170function %(complete_func)s170function %(complete_func)s;171 set -l response (env %(complete_var)s=fish_complete COMP_WORDS=(commandline -cp) \172COMP_CWORD=(commandline -t) %(prog_name)s)172COMP_CWORD=(commandline -t) %(prog_name)s);173174 for completion in $response175 set -l metadata (string split "," $completion)174 for completion in $response;175 set -l metadata (string split "," $completion);176177 if test $metadata[1] = "dir"178 __fish_complete_directories $metadata[2]179 else if test $metadata[1] = "file"180 __fish_complete_path $metadata[2]181 else if test $metadata[1] = "plain"182 echo $metadata[2]183 end184 end185end177 if test $metadata[1] = "dir";178 __fish_complete_directories $metadata[2];179 else if test $metadata[1] = "file";180 __fish_complete_path $metadata[2];181 else if test $metadata[1] = "plain";182 echo $metadata[2];183 end;184 end;185end;186187complete --no-files --command %(prog_name)s --arguments \188"(%(complete_func)s)"188"(%(complete_func)s)";189"""190191192class ShellComplete:
404 unmodified lines