Commit Graph

4 Commits

Author SHA1 Message Date
Łukasz Mierzwa
c8348ba325 Don't set the default value for flags
Let envconfig handle defaults, setting it for flags means that we'll always pass a value to the env if there was a default one, meaning that we're unable to override via env
2017-03-27 19:38:58 -07:00
Łukasz Mierzwa
6096e3a09b Add port to the list of options
PORT env variable is used by gin, but adding it to the list of config options will generate a flag for it and provide value validation
2017-03-26 17:51:30 -07:00
Łukasz Mierzwa
3de3a9c481 Generate flag for each environment key
This allows to set config keys via flags, in additions to current env variable only configuration. Flags are autogenerated from supported env keys.
2017-03-26 13:38:37 -07:00
Łukasz Mierzwa
e239fd05fd Import code from internal repository (#1)
Import code from internal repository
2017-03-23 16:58:04 -07:00