@@ -12,7 +12,6 @@ type InfoFormatter struct {
1212 // Color schemes
1313 HeaderColor * color.Color
1414 LabelColor * color.Color
15- ValueColor * color.Color
1615 SuccessColor * color.Color
1716 WarningColor * color.Color
1817 ErrorColor * color.Color
@@ -22,13 +21,12 @@ type InfoFormatter struct {
2221// NewInfoFormatter creates a new formatter with default color schemes
2322func NewInfoFormatter () * InfoFormatter {
2423 return & InfoFormatter {
25- HeaderColor : color .New (color .FgHiCyan , color .Bold ),
26- LabelColor : color .New (color .FgHiBlue ),
27- ValueColor : color .New (color .FgHiWhite ),
28- SuccessColor : color .New (color .FgHiGreen ),
29- WarningColor : color .New (color .FgHiYellow ),
30- ErrorColor : color .New (color .FgHiRed ),
31- NeutralColor : color .New (color .FgHiBlack ),
24+ HeaderColor : color .New (color .FgCyan , color .Bold ),
25+ LabelColor : color .New (color .FgBlue , color .Bold ),
26+ SuccessColor : color .New (color .FgGreen , color .Bold ),
27+ WarningColor : color .New (color .FgYellow , color .Bold ),
28+ ErrorColor : color .New (color .FgRed , color .Bold ),
29+ NeutralColor : color .New (color .FgBlue ),
3230 }
3331}
3432
@@ -43,7 +41,7 @@ func (f *InfoFormatter) FormatSection(title string) string {
4341func (f * InfoFormatter ) FormatKeyValue (key string , value interface {}) string {
4442 return fmt .Sprintf ("%s %s\n " ,
4543 f .LabelColor .Sprintf ("%-16s:" , key ),
46- f . ValueColor .Sprint (value ))
44+ fmt .Sprint (value ))
4745}
4846
4947// FormatProgressBar generates a visual indicator for percentage values
@@ -80,13 +78,13 @@ func (f *InfoFormatter) FormatProgressBar(percent float64, width int) string {
8078 bar += f .NeutralColor .Sprint (strings .Repeat ("░" , width - filled ))
8179 }
8280
83- return fmt .Sprintf ("%s %s" , bar , f . ValueColor . Sprintf ( "%. 1f%%" , percent ) )
81+ return fmt .Sprintf ("%s %. 1f%%" , bar , percent )
8482}
8583
8684// FormatBool formats boolean values with color
8785func (f * InfoFormatter ) FormatBool (value bool ) string {
8886 if value {
8987 return f .SuccessColor .Sprint ("yes" )
9088 }
91- return f . NeutralColor .Sprint ("no" )
89+ return color . New ( color . FgMagenta ) .Sprint ("no" )
9290}
0 commit comments