-
Notifications
You must be signed in to change notification settings - Fork 347
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
env._.run
#1448
Comments
could the arbitrary script execute anything? I would like, for example, to automatically this could replace (my use of) |
Would love to use this to load env vars from 1Password |
Would be lovely for scripts execution, but for single commands as well, to have atomic commands too 🙏 |
Are there any plans to do this? |
You're welcome to take it on |
@jdx If you are open to it, we'd be willing to sponsor some improvements around this issue as well as these other two: Of course, this assumes you are onboard with the proposed changes. In short, we are trying to replace direnv with Mise and there are some differences in how they work, which are currently blocking a switch. Happy to elaborate on the details if you want to know more about what's keeping us from switching. I'd guess you are probably busy, but just wanted to ask 😄 |
@jdx Awesome 😄 If you enable donations and ping me we'll still send something over (we're not a huge company though, just a dozen of engineers). In either case, this is great and I think (a colleague is double-checking) that this will unblock us from moving off direnv to Mise! 🎉 |
I really appreciate that! let me know how it works, it was quite a bit of code and it's a bit tricky to test but I had it working well enough on my machine. I added sponsorship to my GH profile. |
@jdx Great! I'm not directly involved but my colleague will likely write back here or in the other issue that was also closed yesterday (those were related) in case there are questions. You should see some fresh sponsorship. I know it's not much, but at least it's something (we're not a big company). |
similar to #1447, it should be possible to execute arbitrary scripts which "export" env vars like this:
Where unlike in #1447, this would be run like any other binary. Somehow it needs to pull env vars out of it, I know that direnv has a trick where they launch direnv inside of this script and that is able to pull the env vars out. We'll need something like that to make this possible.
The text was updated successfully, but these errors were encountered: