-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature: automatic .env reading #152
Comments
Nice suggestion 🔥 . I would love to see this in bunster . The implementation design would be to have a builtin that automatically loads from a file: Example: # load from a file
envload file.env
# loads from file named .env
envload what do you think |
@yassinebenaid
|
What I understand from your suggestion is the following:
bunster build script --envload
Correct me if I'm wrong ! |
I have to correct you I want to load variables from .env (or other naming) when I run already built binary. Lets imagine: I build binary and push it to the remote host. So, if there would be .env file in folder, where i launch binary, it will try to read and parse that .env and use variables in runtime.
|
Ammm, I wonder why would you prefer that over using the I mean, if both methods do the same thing, why don't we just keep one of them. I vote for first one. The # in condition
if true; then
envload
fi
# in sub-shell
(
envload
)
# ... |
@yassinebenaid Sounds good. Ok. |
@yassinebenaid But don't forget support custom file naming, not only .env, please |
Yep, sure. It'll be added soon in a future release. |
golang can read .env
so it would be nice to have ability automatic reading .env from cwd
The text was updated successfully, but these errors were encountered: