diff --git a/README.md b/README.md index 1f740862..16bf62a3 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/bin/concurrently.js b/bin/concurrently.js index 82b3030e..2fe39c51 100755 --- a/bin/concurrently.js +++ b/bin/concurrently.js @@ -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': { diff --git a/bin/epilogue.txt b/bin/epilogue.txt index 88752dbc..6288361b 100644 --- a/bin/epilogue.txt +++ b/bin/epilogue.txt @@ -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"