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

Warn or Throw on missing env variable #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ggarek
Copy link

@ggarek ggarek commented Feb 21, 2015

I have added logic to be aware of missing variables. It helps me, hope it would be helpful for others too.

Added new flags "error" and "warn" that could be passed to envify.

If error is passed, then envify will throw descriptive error if any
environment variable is not defined.

If warn is passed, then envify will print message to terminal in same
circumstances.
@tjconcept
Copy link

+1 on this feature. I do checks in most of my build scripts for the same reason.

@arv
Copy link

arv commented Nov 17, 2015

This would be very useful.

Is there any plan to merge this?

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

Successfully merging this pull request may close these issues.

3 participants