-
Notifications
You must be signed in to change notification settings - Fork 14
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
Read Variables from ENV #25
Comments
Yeah, this seems like a reasonable thing to do, might look at switching to https://github.com/spf13/viper so that we can easily switch between flags, env and config file |
I guess you don't need to switch to any other packet since you are already using kingpin. So you can easily add Env Vars: |
true, I'm just thinking ahead as people might want a config file in the future |
It looks like kingpin also has an option to read args from the config file: |
I think the problem with Kingpin was easily overriding, based on flag/file/env etc. See this issue alecthomas/kingpin#208, however it looks like something has been implemented to try and make this better alecthomas/kingpin#209, so that could be worth a look. Although it's only on |
It could be advantageous in some instances to have variables read from the container environment rather than passing command flags to the binary.
The text was updated successfully, but these errors were encountered: