File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# This is a shell completion script auto-generated by https://github.com/urfave/cli for fish.
22
3- function __%[1]_perform_completion
3+ function __%[1]s_perform_completion
44 # Extract all args except the last one
55 set -l args (commandline -opc)
66 # Extract the last arg (partial input)
@@ -18,18 +18,18 @@ function __%[1]_perform_completion
1818 end
1919
2020 for line in $results
21- if not string match -q -- "%[1]*" $line
21+ if not string match -q -- "%[1]s *" $line
2222 set -l parts (string split -m 1 ":" -- "$line")
2323 if test (count $parts) -eq 2
24- printf "%s\t%s\n" "$parts[1]" "$parts[2]"
24+ printf "%% s\t% %s\n" "$parts[1]" "$parts[2]"
2525 else
26- printf "%s\n" "$line"
26+ printf "%% s\n" "$line"
2727 end
2828 end
2929 end
3030end
3131
32- # Clear existing completions for %[1]
33- complete -c %[1] -e
32+ # Clear existing completions for %[1]s
33+ complete -c %[1]s -e
3434# Register completion function
35- complete -c %[1] -f -a '(__%[1]_perform_completion )'
35+ complete -c %[1]s -f -a '(__%[1]s_perform_completion )'
You can’t perform that action at this time.
0 commit comments