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:
@@ -1,7 +1,11 @@
|
||||
// Package style provides consistent terminal styling using Lipgloss.
|
||||
package style
|
||||
|
||||
import "github.com/charmbracelet/lipgloss"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
)
|
||||
|
||||
var (
|
||||
// Success style for positive outcomes
|
||||
@@ -43,3 +47,10 @@ var (
|
||||
// ArrowPrefix for action indicators
|
||||
ArrowPrefix = Info.Render("→")
|
||||
)
|
||||
|
||||
// PrintWarning prints a warning message with consistent formatting.
|
||||
// The format and args work like fmt.Printf.
|
||||
func PrintWarning(format string, args ...interface{}) {
|
||||
msg := fmt.Sprintf(format, args...)
|
||||
fmt.Printf("%s %s\n", Warning.Render("⚠ Warning:"), msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user