From 1ce48694a5bd794bdc6fa006ee32e0a9bf693d52 Mon Sep 17 00:00:00 2001 From: Peter Gasser Date: Tue, 11 Dec 2018 15:42:40 +0100 Subject: [PATCH] use composer require in installation instructions --- README.md | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 193240e..51405d8 100644 --- a/README.md +++ b/README.md @@ -18,23 +18,14 @@ The option -y assumed by default but can be overridden on calls to `exec()` by p ## Installation -### Versions +For new projects (and Robo >= 1.0.0-RC1), just do: -- `~1.0`: Robo <= 0.4.5 -- `~2.1`: Robo >= 0.5.2 -- `~3.0`: Robo >= 1.0.0-RC1 - -Add `"boedah/robo-drush": "~3"` to your composer.json: + composer require --dev boedah/robo-drush -```json - { - "require-dev": { - "boedah/robo-drush": "~3" - } - } -``` +For older versions of Robo, use: -Execute `composer update`. +- `~1.0`: Robo <= 0.4.5 +- `~2.1`: Robo >= 0.5.2 ## Testing @@ -47,7 +38,7 @@ Use the trait (according to your used version) in your RoboFile: ```php class RoboFile extends \Robo\Tasks { - // if you use ~2.1 for Robo >=0.5.2, or ~3 for Robo >=1.0.0-RC1 + // if you use robo-drush ~2.1 for Robo >=0.5.2, or robo-drush >3 for Robo >=1.0.0-RC1 use \Boedah\Robo\Task\Drush\loadTasks; // if you use ~1.0 for Robo ~0.4