| 47 | } |
| 48 | |
| 49 | type IOStreams struct { |
| 50 | term term |
| 51 | |
| 52 | In fileReader |
| 53 | Out fileWriter |
| 54 | ErrOut fileWriter |
| 55 | |
| 56 | terminalTheme string |
| 57 | |
| 58 | progressIndicatorEnabled bool |
| 59 | progressIndicator *spinner.Spinner |
| 60 | progressIndicatorMu sync.Mutex |
| 61 | spinnerDisabled bool |
| 62 | |
| 63 | alternateScreenBufferEnabled bool |
| 64 | alternateScreenBufferActive bool |
| 65 | alternateScreenBufferMu sync.Mutex |
| 66 | |
| 67 | stdinTTYOverride bool |
| 68 | stdinIsTTY bool |
| 69 | stdoutTTYOverride bool |
| 70 | stdoutIsTTY bool |
| 71 | stderrTTYOverride bool |
| 72 | stderrIsTTY bool |
| 73 | |
| 74 | colorOverride bool |
| 75 | colorEnabled bool |
| 76 | colorLabels bool |
| 77 | accessibleColorsEnabled bool |
| 78 | |
| 79 | pagerCommand string |
| 80 | pagerProcess *os.Process |
| 81 | |
| 82 | neverPrompt bool |
| 83 | accessiblePrompterEnabled bool |
| 84 | experimentalPrompterEnabled bool |
| 85 | |
| 86 | TempFileOverride *os.File |
| 87 | } |
| 88 | |
| 89 | func (s *IOStreams) ColorEnabled() bool { |
| 90 | if s.colorOverride { |
nothing calls this directly
no outgoing calls
no test coverage detected