Skip to content

Commit

Permalink
Add support for options in environment variables (#289)
Browse files Browse the repository at this point in the history
Co-authored-by: Gustavo Henke <guhenke@gmail.com>
  • Loading branch information
aidansteele and gustavohenke authored Dec 17, 2021
1 parent c04740a commit 7578774
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ Examples:
$ concurrently --names "HTTP,WATCH" -c "bgBlue.bold,bgMagenta.bold"
"http-server" "npm run watch"
- Configuring via environment variables with CONCURRENTLY_ prefix
$ CONCURRENTLY_RAW=true CONCURRENTLY_KILL_OTHERS=true $0 "echo hello" "echo world"
- Send input to default
$ concurrently --handle-input "nodemon" "npm run watch-js"
Expand Down
2 changes: 2 additions & 0 deletions bin/concurrently.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const args = yargs
.version('v', require('../package.json').version)
.alias('v', 'V')
.alias('v', 'version')
// TODO: Add some tests for this.
.env('CONCURRENTLY')
.options({
// General
'm': {
Expand Down
4 changes: 4 additions & 0 deletions bin/epilogue.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Examples:

$ $0 --names "HTTP,WATCH" -c "bgBlue.bold,bgMagenta.bold" "http-server" "npm run watch"

- Configuring via environment variables with CONCURRENTLY_ prefix

$ CONCURRENTLY_RAW=true CONCURRENTLY_KILL_OTHERS=true $0 "echo hello" "echo world"

- Send input to default

$ $0 --handle-input "nodemon" "npm run watch-js"
Expand Down

0 comments on commit 7578774

Please sign in to comment.