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

Method ColorScheme

pkg/iostreams/iostreams.go:434–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432}
433
434func (s *IOStreams) ColorScheme() *ColorScheme {
435 return &ColorScheme{
436 Enabled: s.ColorEnabled(),
437 EightBitColor: s.ColorSupport256(),
438 TrueColor: s.HasTrueColor(),
439 Accessible: s.AccessibleColorsEnabled(),
440 ColorLabels: s.ColorLabels(),
441 Theme: s.TerminalTheme(),
442 }
443}
444
445func (s *IOStreams) ReadUserFile(fn string) ([]byte, error) {
446 var r io.ReadCloser

Callers 15

MainFunction · 0.95
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

Calls 6

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

Tested by 7

TestPromptGistsFunction · 0.64
Test_printReviewHintFunction · 0.64
Test_printHostHintsFunction · 0.64
Test_printErrorFunction · 0.64