Skip to content

Commit

Permalink
bug #47463 [Console] [Completion] Make fish completion run in non int…
Browse files Browse the repository at this point in the history
…eractive mode (Seldaek)

This PR was merged into the 6.1 branch.

Discussion
----------

[Console] [Completion] Make fish completion run in non interactive mode

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Port #47394 to 6.1 for fish

Commits
-------

25ab956 [Console] [Completion] Make fish completion run in non interactive mode
  • Loading branch information
fabpot committed Sep 2, 2022
2 parents 3e763df + 25ab956 commit 4bdae6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Resources/completion.fish
Expand Up @@ -9,7 +9,7 @@ function _sf_{{ COMMAND_NAME }}
set sf_cmd (commandline -o)
set c (count (commandline -oc))

set completecmd "$sf_cmd[1]" "_complete" "-sfish" "-S{{ VERSION }}"
set completecmd "$sf_cmd[1]" "_complete" "--no-interaction" "-sfish" "-S{{ VERSION }}"

for i in $sf_cmd
if [ $i != "" ]
Expand Down

0 comments on commit 4bdae6f

Please sign in to comment.