MCPcopy
hub / github.com/cli/cli / Red

Method Red

pkg/iostreams/color.go:96–101  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

94}
95
96func (c *ColorScheme) Red(t string) string {
97 if !c.Enabled {
98 return t
99 }
100 return red(t)
101}
102
103func (c *ColorScheme) Redf(t string, args ...interface{}) string {
104 return c.Red(fmt.Sprintf(t, args...))

Callers 15

RedfMethod · 0.95
viewRunFunction · 0.80
renderReleaseTTYFunction · 0.80
StringMethod · 0.80
deleteRunFunction · 0.80
createRunFunction · 0.80
deleteRunFunction · 0.80
viewRunFunction · 0.80
runVerifyFunction · 0.80
promptInstallFunction · 0.80
renderInteractiveFunction · 0.80
renderDiagnosticsTTYFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected