Skip to content

Commit 6e2eded

Browse files
committed
Updated readme.
1 parent 8eb8f6a commit 6e2eded

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ Provides drush (`runDrush`) command.
4747

4848
### Configuration
4949
- working_directory: Working directory where drush should be executed. Defaults to codeception root.
50+
- timeout: Timeout in seconds for drush command. Set to 0 for no timeout. Default to 60 seconds.
5051
- drush: Drush executable. Defaults to `drush`.
5152
```
5253
modules:
5354
- DrupalDrush:
5455
working_directory: './web'
56+
timeout: 120
5557
drush: './vendor/bin/drush'
5658
options:
5759
uri: http://mydomain.com
@@ -60,9 +62,17 @@ modules:
6062

6163
### Usage
6264

63-
Run drush config import and store output.
65+
Run drush status and store output.
6466

65-
`$output = $i->runDrush('cim -y');`
67+
`$output = $i->runDrush('status');`
68+
69+
Run drush config import and store output from STDERR.
70+
71+
`$output = $i->runDrush('cim -y', [], TRUE)->getErrorOutput();`
72+
73+
Run drush cache rebuild and store the exit code.
74+
75+
`$exit_code = $i->runDrush('cr', [], TRUE)->getExitCode();`
6676

6777
Get one-time login url.
6878

0 commit comments

Comments
 (0)