-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Support completion for bash functions #48179
8000 New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey! I think @remicollet has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
Hi @Chi-teck, can you provide an example of "bash function", so that we can test your change? |
@GromNaN It could be a simple wrapper around any Symfony app that already have completions dumped.
function some-app() {
/var/www/vendor/bin/some-app
}
Check if completions work for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the reproducer. I think the function should transmit the arguments so that the completion works.
function some-app() {
/var/www/vendor/bin/some-app "$@"
}
@symfony/mergers I think this is a bugfix that should be merged in 5.4.
Thank you @Chi-teck. |
3b60ba1
to
1321278
Compare
I often use bash functions as wrappers for executable files that live in vendor/bin. So that they can be executed from any location within a project. Symfony Console has recently added support for Bash completions but right now that only applies to executable files and aliases. This PR adds support for Bash functions.