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

Method IsStderrTTY

pkg/iostreams/iostreams.go:198–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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