Standardize warning output to use style.PrintWarning (gt-g6kor)

- Add PrintWarning helper in internal/style/style.go
- Update 35 warning message outputs across 16 files to use consistent format
- All warnings now display as "⚠ Warning: <message>" in yellow/bold

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-28 16:38:04 -08:00
parent d953aa19e3
commit 5e9ca4c618
17 changed files with 49 additions and 42 deletions

View File

@@ -238,8 +238,7 @@ squashed_at: %s
Status: &closedStatus,
})
if err != nil {
fmt.Printf("%s Created digest but couldn't close it: %v\n",
style.Dim.Render("Warning:"), err)
style.PrintWarning("Created digest but couldn't close it: %v", err)
}
// Detach the molecule from the handoff bead with audit logging
@@ -282,8 +281,7 @@ func closeDescendants(b *beads.Beads, parentID string) int {
Status: "all",
})
if err != nil {
fmt.Printf("%s Warning: could not list children of %s: %v\n",
style.Dim.Render("⚠"), parentID, err)
style.PrintWarning("could not list children of %s: %v", parentID, err)
return 0
}
@@ -307,8 +305,7 @@ func closeDescendants(b *beads.Beads, parentID string) int {
if len(idsToClose) > 0 {
if closeErr := b.Close(idsToClose...); closeErr != nil {
fmt.Printf("%s Warning: could not close children of %s: %v\n",
style.Dim.Render("⚠"), parentID, closeErr)
style.PrintWarning("could not close children of %s: %v", parentID, closeErr)
} else {
totalClosed += len(idsToClose)
}