v0.1.2 minor refactor, helpers back to private, utility update

This commit is contained in:
lixen committed 2025-11-14 13:02:19 -05:00
1 parent f6c05e27b3
commit f7efbb881c
12 files changed
+178 -53

No files matched your search

+4 -4
View File
@@ -156,7 +156,7 @@ func TestEnvironmentLoading(t *testing.T) {
},
}
err := cfg.LoadWithOptions("", nil, opts)
err := cfg.loadWithOptions("", nil, opts)
require.NoError(t, err)
host, _ := cfg.Get("db.host")
@@ -176,7 +176,7 @@ func TestEnvironmentLoading(t *testing.T) {
EnvWhitelist: map[string]bool{"allowed.path": true},
}
err := cfg.LoadWithOptions("", nil, opts)
err := cfg.loadWithOptions("", nil, opts)
require.NoError(t, err)
allowed, _ := cfg.Get("allowed.path")
@@ -321,7 +321,7 @@ port = 8080
EnvPrefix: "TEST_",
}
err := cfg.LoadWithOptions(configFile, args, opts)
err := cfg.loadWithOptions(configFile, args, opts)
require.NoError(t, err)
// CLI should win
@@ -431,4 +431,4 @@ func splitEnvVar(env string) []string {
}
}
return []string{env}
}
}