Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20428e1

Browse files
committed
Simplify Fish completion script
The output of the complete command can be used as is, there is no need to store its result in a variable and echo each line separately.
1 parent 7b4818f commit 20428e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Console/Resources/completion.fish

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ function _sf_{{ COMMAND_NAME }}
1919

2020
set completecmd $completecmd "-c$c"
2121

22-
set sfcomplete ($completecmd)
23-
24-
for i in $sfcomplete
25-
echo $i
26-
end
22+
$completecmd
2723
end
2824

2925
complete -c '{{ COMMAND_NAME }}' -a '(_sf_{{ COMMAND_NAME }})' -f

0 commit comments

Comments
 (0)