e5.2.1 Improved interfaces of functions using path and prefix.

This commit is contained in:
2025-07-20 20:53:22 -04:00
parent 06cddbe00e
commit 3aa2ab30d6
11 changed files with 105 additions and 114 deletions

View File

@ -375,9 +375,9 @@ func TestAtomicSave(t *testing.T) {
})
t.Run("SaveSpecificSource", func(t *testing.T) {
cfg.SetSource("server.host", SourceEnv, "envhost")
cfg.SetSource("server.port", SourceEnv, "7777")
cfg.SetSource("server.port", SourceFile, "6666")
cfg.SetSource(SourceEnv, "server.host", "envhost")
cfg.SetSource(SourceEnv, "server.port", "7777")
cfg.SetSource(SourceFile, "server.port", "6666")
savePath := filepath.Join(tmpDir, "env-only.toml")
err := cfg.SaveSource(savePath, SourceEnv)