Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for options in environment variables #289

Merged
merged 4 commits into from Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
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
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
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