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

Method ColorScheme

pkg/iostreams/iostreams.go:433–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431}
432
433func (s *IOStreams) ColorScheme() *ColorScheme {
434 return &ColorScheme{
435 Enabled: s.ColorEnabled(),
436 EightBitColor: s.ColorSupport256(),
437 TrueColor: s.HasTrueColor(),
438 Accessible: s.AccessibleColorsEnabled(),
439 ColorLabels: s.ColorLabels(),
440 Theme: s.TerminalTheme(),
441 }
442}
443
444func (s *IOStreams) ReadUserFile(fn string) ([]byte, error) {
445 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