Open jgonyea opened 3 years ago
It works for some commands: bin/plugin login lookup
...
In case someone else comes looking at this issue, my current workaround is to use the full name of the command.
I think the logic is broken near vendor/symfony/console/Applications.php find($name) function
It doesn't seem to consider aliases properly around L641-L650
In that case, we need to report this issue to Symfony project. @jgonyea Can you do that as you have already looked into the source code?
Submitting an issue to the Symfony project is beyond my skillset, sorry. They're looking for code samples of the bug.
Just mentioning this is still broken in v1.8.0-beta.
I wonder if the Grav/Console/Application/CommandLoader/PluginCommandLoader.php
could add the aliases in somehow.
After poking around, I'm pretty convinced the aforementioned file in Grav is the culprit, as it never checks for aliases before returning a null when searching for the alias.
I'll submit a PR tomorrow or later this weekend.
Added PR to address missing aliases.
To Reproduce:
From the command line, attempt to use an alias of any command:
bin/plugin login newuser
Expected Result:
Command to create a new user is initiated, prompting for a username.
Observed Result:
Command returns an error:
If I use the full name of the command (
bin/plugin login new-user
), the command is successful.Environment: