first draft of config loading exclusively using env vars

This commit is contained in:
A.Unger
2021-11-03 14:46:38 +01:00
parent ac373dd004
commit 90844c5c84
5 changed files with 119 additions and 136 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
// load all env variables relevant to the config in the current context.
conf.LoadOSEnv(config.GetEnv(), false)
if err = config.UnmapEnv(conf, cfg); err != nil {
if err = cfg.UnmapEnv(conf); err != nil {
return err
}