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

Method IsStderrTTY

pkg/iostreams/iostreams.go:199–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197}
198
199func (s *IOStreams) IsStderrTTY() bool {
200 if s.stderrTTYOverride {
201 return s.stderrIsTTY
202 }
203 if stderr, ok := s.ErrOut.(*os.File); ok {
204 return isTerminal(stderr)
205 }
206 return false
207}
208
209func (s *IOStreams) SetPager(cmd string) {
210 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