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

Support for a flag to inject environment variables #100

Closed
wants to merge 3 commits into from

Conversation

mariocj89
Copy link

Add a new option that will take defaults from environment variables if available.

The variable is looked up as the parameter and full uppercase for convenience.

The option use_environment can be used both as a flag or a value can be passed in which allows to set a prefix for the env variables to look for. (Check the tests)

I'm not totally convinced on how the variable is passed around the code. Open to suggestions.

Happy to add docs once we finalise all decisions.

Fixes #94

Add a new flag that will take defaults from environment variables if
available.
The variable is lookedup as the parameter and full upercase for
convenience.
@mariocj89 mariocj89 changed the title Suppor for a flag to inject environment variables Support for a flag to inject environment variables Oct 18, 2017
@dbieber
Copy link
Member

dbieber commented Oct 23, 2017

Thanks for the PR!
I will follow up with comments (and a draft of the configs plans / naming conventions) later.
Thanks for your patience.

@mariocj89
Copy link
Author

No thanks needed!

@TomFaulkner
Copy link

Is this PR going to be merged? I'm looking forward to using this feature.

@mariocj89
Copy link
Author

I am happy to do any requested change :)

@dbieber let me know if there is anything to change

@mariocj89
Copy link
Author

I guess this is not going to happen

@mariocj89 mariocj89 closed this Sep 10, 2019
@mariocj89 mariocj89 deleted the env_variables branch September 10, 2019 16:47
@TomFaulkner
Copy link

It is a sad day.

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.

Support for environment variables as default
3 participants