MCPcopy
hub / github.com/cli/cli / Gray

Method Gray

pkg/iostreams/color.go:137–145  ·  view source on GitHub ↗

Deprecated: Use Muted instead for thematically contrasting color.

(t string)

Source from the content-addressed store, hash-verified

135
136// Deprecated: Use Muted instead for thematically contrasting color.
137func (c *ColorScheme) Gray(t string) string {
138 if !c.Enabled {
139 return t
140 }
141 if c.EightBitColor {
142 return gray256(t)
143 }
144 return gray(t)
145}
146
147// Deprecated: Use Mutedf instead for thematically contrasting color.
148func (c *ColorScheme) Grayf(t string, args ...interface{}) string {

Callers 2

MutedMethod · 0.95
GrayfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected