-
Notifications
You must be signed in to change notification settings - Fork 27
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
added variable should be available in the current process #130
Comments
try:
if you'd have any questions just let us know! ;) |
yep, but I was wondering why not exporting it after storing it ?
|
yeah, it might be a bit too bloated, but it's connected to the previous paragraph in the readme, namely:
So something like
roughly the same as
Feel free to send a PR for the readme if you have an idea to make this more straightforward! :) |
for:
answer is the next paragraph:
basically you can have a dir structure like:
and if you P.S.: it's also possible to just have separate envstore files in the same directory, and switching between the env sets by defining which one to load:
|
understood ! this is very clear !
into
|
unfortunately that's harder than you'd expect, simply because of how env vars work in shells there's no simple way of exposing env vars in a cross shell compatible way, and env vars exposed by a (sub)process are NOT available in the parent process - the shell itself is a process too! It's pretty much the same as if you'd start a new bash session from another, set an env var then exit - the env var will no longer be available:
|
Thanks for taking the time to give these nice explanations ! |
Any time ;) |
I get a void result;
I was expecting: "bar"
The text was updated successfully, but these errors were encountered: