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
Composer 2.4 (release pending) will have a completion script #211
Comments
Note, the same applies to all PHP tools based on Symfony Console 5.4+ since the feature is provided from there. I'm not sure what's the best way to add individual completion scripts though. |
Yes, I'm aware of this new feature. Shoudl be as simple as dropping a /usr/share/bash-completion/completions/composer file in the package Of course will take care of this when a beta/RC will be available. |
You can already do this, 2.3 should support it already AFAIK, but only for command names. 2.4 brings more advanced arg/option completion. |
@Seldaek indeed bash completion file is generated, but doesn't seems to do anything... more work needed here |
Added in the RPM for new release |
@remicollet that's awesome! \o/ |
generated file is there but doesn't seems to do anything.. |
You're right, I've just created it myself locally with 2.3.7 locally and it's not completing commands. It seems the command is exiting with an error. The feature comes with a
in one shell and use it in another (it's writing to a log file). Maybe @wouterj can help? |
You need to Also make sure to try it with 2.4-dev with |
@dkarlovi version 2.4.0RC1 is not available in the testing repository, with bash completion working
@Seldaek this doesn't work with current symfony/console 5.4.10, need to be fixed, see symfony/symfony#47022 This probably also affects composer.phar if installed in the search path (ex: |
Not sure what doesn't work for you, it works fine for me, but anyway good to see you sent a PR. We'll update as soon as it gets released upstream. |
If you use "composer" command (thanks to search path), then the |
OK maybe it works for me because I use it from a local clone and not as a phar file? I don't quite grasp what your PR is fixing/doing sorry. |
Ah no sorry I see now what you mean. It worked for me because I always use it with my |
In the end, it's a good thing because the completion script (which is shared across all apps using Console) becomes more robust with each found corner case. 👍 |
@remicollet installed RC1 package, it works 🍾 |
composer 2.4.0 is released and available in the repository |
Thanks so much! |
composer/composer#10320
Don't know when the release is planned.
The text was updated successfully, but these errors were encountered: