Skip to content

Commit

Permalink
use composer require in installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
boedah committed Dec 11, 2018
1 parent c12c6f7 commit 1ce4869
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 1ce4869

Please sign in to comment.