feat(doctor): detects undecoded config keys

This commit is contained in:
Lewis Wynne 2026-02-12 00:35:28 +00:00
parent df70be2c4f
commit 4bd45e7d3c
3 changed files with 52 additions and 10 deletions

View file

@ -161,6 +161,12 @@ func runDoctor(w io.Writer) bool {
}
}
// 7b. Unrecognised config keys
if len(configUndecodedKeys) > 0 {
emit("WARN", fmt.Sprintf("Unrecognised config key(s) (ignored):"))
tree(configUndecodedKeys)
}
// 8. Data directory
store := &Store{}
dataDir, err := store.path()