Skip to content

Warn or Throw on missing env variable#19

Open
ggarek wants to merge 2 commits into
hughsk:masterfrom
ggarek:master
Open

Warn or Throw on missing env variable#19
ggarek wants to merge 2 commits into
hughsk:masterfrom
ggarek:master

Conversation

@ggarek
Copy link
Copy Markdown

@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
Copy Markdown

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

@arv
Copy link
Copy Markdown

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