feat(v0.3): add informational seed directory checks to doctor

Adds two [INFO] lines after the existing pass/fail checks
reporting whether the resolved general and project seed
directories exist. These are read-only and do not contribute to
the pass/fail counters, so users with no seed directories still
see "5 checks passed, 0 failed".
This commit is contained in:
2026-04-10 14:55:01 -04:00
parent 2d1d779f4b
commit 9e23277094
+18
View File
@@ -178,6 +178,24 @@ func runDoctor(cmd *cobra.Command, args []string) error {
failed++
}
// Informational checks (do not affect pass/fail counters).
fmt.Println()
fmt.Println("Seed directories (informational):")
seedDir := config.ResolveSeedDir()
if info, err := os.Stat(seedDir); err == nil && info.IsDir() {
fmt.Printf(" [INFO] General seed directory: %s (present)\n", seedDir)
} else {
fmt.Printf(" [INFO] General seed directory: %s (not present)\n", seedDir)
}
projectSeedDir := config.ResolveProjectSeedDir()
if info, err := os.Stat(projectSeedDir); err == nil && info.IsDir() {
fmt.Printf(" [INFO] Project seed directory: %s (present)\n", projectSeedDir)
} else {
fmt.Printf(" [INFO] Project seed directory: %s (not present)\n", projectSeedDir)
}
// Summary
fmt.Println()
fmt.Printf("%d checks passed, %d failed\n", passed, failed)