MCPcopy Create free account
hub / github.com/cli/cli / TableHeader

Method TableHeader

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

Source from the content-addressed store, hash-verified

275}
276
277func (c *ColorScheme) TableHeader(t string) string {
278 // Table headers are only stylized if color is enabled including underline modifier.
279 if !c.Enabled {
280 return t
281 }
282
283 switch c.Theme {
284 case DarkTheme:
285 return darkThemeTableHeader(t)
286 case LightTheme:
287 return lightThemeTableHeader(t)
288 default:
289 return noThemeTableHeader(t)
290 }
291}

Callers 1

TestTableHeaderFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTableHeaderFunction · 0.64