platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
224 stars 121 forks source link

Use local drush if applicable #620

Closed ralt closed 6 years ago

ralt commented 6 years ago

When drush is installed locally with just composer require drush/drush, platformsh-cli should use it, and not silently fail as it currently does, if drush isn't installed globally.

Notably, the platform drush-aliases command acts this way.

ralt commented 6 years ago

@pjcdawkins related is the fact that the CLI is silently displaying "Created drush aliases" even if it failed; do you want another issue for it?

pjcdawkins commented 6 years ago

It can (and does) create Drush aliases even if it can't find Drush (it just writes directly to ~/.drush/<group>.aliases.drushrc.php)

ralt commented 6 years ago

Ok, my bad then!