-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support passing environment variables to processes #174
Labels
enhancement
New feature or request
Milestone
Comments
I like it! And I could use it to simplify the MinVer package tests. |
@damianh I've released this in 6.2.0-rc.1. Can you take it for a spin? |
I will |
Works here 👍 |
adamralph
changed the title
Support passing environment vars to processes
Support passing environment variables to processes
Oct 10, 2020
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use case(s)
Some of our tooling (basically around yarn / npm) leverages environment variables instead of arguments and some scenarios it not possible to pass args via scripts nested in package.json. (How does software even work?)
Description
Since simple-exec is a wrapper around
ProcessStartInfo
which already supportsEnviromentVariables
and since UseShellExecute isfalse
, it should allow the caller to optionally modify before executing:Example usage:
Alternatives
This is nasty yo
Additional context
None.
The text was updated successfully, but these errors were encountered: