tommy-mitchell / listr-cli

Command-line task lists made pretty.
https://npm.im/listr-cli
MIT License
0 stars 0 forks source link

Allow setting environment variables via a flag #4

Closed tommy-mitchell closed 1 year ago

tommy-mitchell commented 1 year ago

Rollup supports setting environment variables via a flag: (source)

$ npx rollup -c --environment INCLUDE_DEPS,BUILD:production
#=> process.env.INCLUDE_DEPS = "true"
#=> process.env.BUILD = "production"

listr-cli should support the same to make setting variables easier cross-platform. Rollup's syntax (automatic true, array support) is acceptable.

Possible flags: --environment, --env, -e

tommy-mitchell commented 1 year ago

Possible blocker: https://github.com/sindresorhus/meow/issues/164