@@ -63,27 +63,43 @@ func (c *ColorScheme) Bold(t string) string {
6363 return bold (t )
6464}
6565
66+ func (c * ColorScheme ) Boldf (t string , args ... interface {}) string {
67+ return c .Bold (fmt .Sprintf (t , args ... ))
68+ }
69+
6670func (c * ColorScheme ) Red (t string ) string {
6771 if ! c .enabled {
6872 return t
6973 }
7074 return red (t )
7175}
7276
77+ func (c * ColorScheme ) Redf (t string , args ... interface {}) string {
78+ return c .Red (fmt .Sprintf (t , args ... ))
79+ }
80+
7381func (c * ColorScheme ) Yellow (t string ) string {
7482 if ! c .enabled {
7583 return t
7684 }
7785 return yellow (t )
7886}
7987
88+ func (c * ColorScheme ) Yellowf (t string , args ... interface {}) string {
89+ return c .Yellow (fmt .Sprintf (t , args ... ))
90+ }
91+
8092func (c * ColorScheme ) Green (t string ) string {
8193 if ! c .enabled {
8294 return t
8395 }
8496 return green (t )
8597}
8698
99+ func (c * ColorScheme ) Greenf (t string , args ... interface {}) string {
100+ return c .Green (fmt .Sprintf (t , args ... ))
101+ }
102+
87103func (c * ColorScheme ) Gray (t string ) string {
88104 if ! c .enabled {
89105 return t
@@ -105,6 +121,10 @@ func (c *ColorScheme) Magenta(t string) string {
105121 return magenta (t )
106122}
107123
124+ func (c * ColorScheme ) Magentaf (t string , args ... interface {}) string {
125+ return c .Magenta (fmt .Sprintf (t , args ... ))
126+ }
127+
108128func (c * ColorScheme ) Cyan (t string ) string {
109129 if ! c .enabled {
110130 return t
@@ -130,6 +150,10 @@ func (c *ColorScheme) Blue(t string) string {
130150 return blue (t )
131151}
132152
153+ func (c * ColorScheme ) Bluef (t string , args ... interface {}) string {
154+ return c .Blue (fmt .Sprintf (t , args ... ))
155+ }
156+
133157func (c * ColorScheme ) SuccessIcon () string {
134158 return c .SuccessIconWithColor (c .Green )
135159}
0 commit comments