v0.29.0 the configuration engine, and lw --schema
Package / arch (push) Canceled after 0s
Package / user (push) Canceled after 0s
Package / deb (push) Canceled after 0s
Package / freebsd (push) Canceled after 0s
Package / image (push) Canceled after 0s
Test / test (push) Canceled after 0s
Test / e2e (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-09 18:34:45 -04:00
1 parent e8e5f05e47
commit dfd8a68988
28 files changed
+1381 -240

No files matched your search

+1 -8
View File
@@ -135,14 +135,7 @@ func checkConfig(cfg *config.Config) int {
// dumpConfig prints the effective configuration, flags and environment
// resolved into it, as a file lw -c reads back.
func dumpConfig(cfg *config.Config, w io.Writer) int {
// Snapshot gave each console sink the top-level color: keep it inherited
for _, p := range cfg.Pipelines {
for _, s := range p.PluginSinks {
if s.Type == "console" && s.Config["color"] == cfg.Color {
delete(s.Config, "color")
}
}
}
config.Uninherit(cfg.Pipelines, cfg.Color)
data, err := toml.Marshal(cfg)
if err == nil {
_, err = w.Write(data)