-
Notifications
You must be signed in to change notification settings - Fork 305
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
Feature request: Pick up project-local robo version #313
Comments
Like site-local Drush! 😄 We could certainly consider doing this, but redispatch code is more complicated than it first appears. I am working on factoring features out of Drush, and placing them in decoupled libraries in the Consolidation org. One of those projects might be helpful here eventually, or perhaps we could just try doing something simple natively in Robo. In the meantime, though, I would suggest doing what I do: put |
yeah, like drush ;) - or other tools like grunt. |
A bit off-topic, but still: Another great feature of drush or tools like vagrant is the possibility to run it in any sub-dir of the project - I've been missing that in the composer world. Do you have some work-a-round for that also? I've been toying with the idea of writing some bash wrapper to find a composer.json and run various commands there via "composer exec foo". |
I don't remember if I've already pointed out the standalone robo scripts feature to you. If you have robo and your standalone script in your $PATH, then you can run it from anywhere. This also includes using the project-local robo with ./vendor/bin in your $PATH. Note also that Robo already supports a --load-from (or -f) option that can be used to specify a particular RoboFile to use. So, you could make an alias similar to I have also considered proposing multiple RoboFile support, which would allow us to support global commands, Drush-style policy files, and so on. However, the thing about this is that Robo has traditionally been a lightweight tool that works with a single RoboFile at once -- so In the meantime, though, it would be trivial to make a new program that just extended the Robo Finally, you may already be familiar with drush-ops/drush#2103. Drush 9 will be based on Symfony/Console and the Robo task runner. With this PR, Drush commands === Robo commands; Drush will continue to use its existing commandfile discovery algorithms (with slight modification to account for the fact that commandfiles are now php class files). |
See also frameworks.md. |
It would be great if a globally installed robo, would pick up any robo installed in a local project (via composer). That way one can add robo to the project dependencies in order to ensure that the robo tasks are always executed with the right version - but still conveniently run it via the global robo command.
The text was updated successfully, but these errors were encountered: