You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#44475 [Console] Handle alias in completion script (GromNaN)
This PR was merged into the 5.4 branch.
Discussion
----------
[Console] Handle alias in completion script
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fixsymfony#44461
| License | MIT
| Doc PR | -
Detect when completion is triggered by an alias and get the underlying command. Tip extracted from [bamarni/symfony-console-autocomplete](https://github.com/bamarni/symfony-console-autocomplete/blob/v1.4.2/resources/bash/default.php#L7-L10).
Works well with such alias:
```console
alias console=bin/console
```
Doesn't work with these aliases (command name is not the 1st part of the alias):
```console
alias console='APP_ENV=test bin/console'
```
When alias has a different name, the name in the completion script must be updated.
Commits
-------
f3c196a Handle alias in completion script
0 commit comments