feature(config): allow environment variable override

This commit is contained in:
2020-07-17 11:45:35 +02:00
parent 5c5a51f9b1
commit 8982e1dd3f
2 changed files with 20 additions and 7 deletions

View File

@ -76,6 +76,10 @@ func main() {
}
if err := config.WithEnvironment(conf); err != nil {
log.Fatalf("%+v", errors.Wrap(err, "could not override config with environment"))
}
// Dump configuration if asked
if dumpConfig {
if err := config.Dump(conf, os.Stdout); err != nil {