Re-enable config files

This commit is contained in:
Bel LaPointe
2019-11-03 07:45:23 -07:00
parent 8c415f2a39
commit 7d3d6d88f6
2 changed files with 16 additions and 12 deletions

View File

@@ -30,7 +30,11 @@ func Refresh() error {
}
func parseArgs() (*args.ArgSet, error) {
as := args.NewArgSet()
configFiles := []string{}
if v, ok := os.LookupEnv("CONFIG"); ok {
configFiles = strings.Split(v, ",")
}
as := args.NewArgSet(configFiles...)
as.Append(args.STRING, "user", "username for basic auth", "")
as.Append(args.STRING, "pass", "password for basic auth", "")