MCPcopy
hub / github.com/cli/cli / ColorScheme

Method ColorScheme

pkg/iostreams/iostreams.go:421–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419}
420
421func (s *IOStreams) ColorScheme() *ColorScheme {
422 return &ColorScheme{
423 Enabled: s.ColorEnabled(),
424 EightBitColor: s.ColorSupport256(),
425 TrueColor: s.HasTrueColor(),
426 Accessible: s.AccessibleColorsEnabled(),
427 ColorLabels: s.ColorLabels(),
428 Theme: s.TerminalTheme(),
429 }
430}
431
432func (s *IOStreams) ReadUserFile(fn string) ([]byte, error) {
433 var r io.ReadCloser

Callers 15

BaseRepoMethod · 0.80
deleteRunFunction · 0.80
deleteCachesFunction · 0.80
listRunFunction · 0.80
NewCmdActionsFunction · 0.80
printHumanViewFunction · 0.80
printHumanCommentFunction · 0.80
printDiscussionsFunction · 0.80
viewRunFunction · 0.80
listRunFunction · 0.80

Calls 6

ColorEnabledMethod · 0.95
ColorSupport256Method · 0.95
HasTrueColorMethod · 0.95
ColorLabelsMethod · 0.95
TerminalThemeMethod · 0.95

Tested by 5

TestPromptGistsFunction · 0.64
Test_printReviewHintFunction · 0.64
Test_printHostHintsFunction · 0.64