MCPcopy
hub / github.com/cli/cli / IsStderrTTY

Method IsStderrTTY

pkg/iostreams/iostreams.go:187–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185}
186
187func (s *IOStreams) IsStderrTTY() bool {
188 if s.stderrTTYOverride {
189 return s.stderrIsTTY
190 }
191 if stderr, ok := s.ErrOut.(*os.File); ok {
192 return isTerminal(stderr)
193 }
194 return false
195}
196
197func (s *IOStreams) SetPager(cmd string) {
198 s.pagerCommand = cmd

Callers 9

SystemFunction · 0.95
viewRunFunction · 0.80
openInBrowserFunction · 0.80
deleteAssetRunFunction · 0.80
deleteRunFunction · 0.80
viewRunFunction · 0.80
forkRunFunction · 0.80
reviewRunFunction · 0.80
CreateMethod · 0.80

Calls 1

isTerminalFunction · 0.85

Tested by

no test coverage detected