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

Allow setting environment variables via a flag #4

Closed
tommy-mitchell opened this issue Mar 28, 2023 · 1 comment · Fixed by #9
Closed

Allow setting environment variables via a flag #4

tommy-mitchell opened this issue Mar 28, 2023 · 1 comment · Fixed by #9
Labels
enhancement New feature or request
Milestone

Comments

@tommy-mitchell
Copy link
Owner

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 tommy-mitchell added the enhancement New feature or request label Mar 28, 2023
@tommy-mitchell
Copy link
Owner Author

Possible blocker: sindresorhus/meow#164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant