Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ SetStdoutTTY
Method
SetStdoutTTY
pkg/iostreams/iostreams.go:165–168 ·
view source on GitHub ↗
(isTTY bool)
Source
from the content-addressed store, hash-verified
163
}
164
165
func
(s *IOStreams) SetStdoutTTY(isTTY bool) {
166
s.stdoutTTYOverride = true
167
s.stdoutIsTTY = isTTY
168
}
169
170
func
(s *IOStreams) IsStdoutTTY() bool {
171
if
s.stdoutTTYOverride {
Callers
15
Test
Function · 0.95
newTestVirtualTerminalIOStreams
Function · 0.95
Test_exportFormat_Write
Function · 0.80
TestDeleteRun
Function · 0.80
TestListRun
Function · 0.80
TestViewRun
Function · 0.80
TestListRun
Function · 0.80
TestNewCmdComment
Function · 0.80
TestCommentRun
Function · 0.80
TestNewCmdCreate
Function · 0.80
TestCreateRun
Function · 0.80
TestNewCmdEdit
Function · 0.80
Calls
no outgoing calls
Tested by
15
Test
Function · 0.76
newTestVirtualTerminalIOStreams
Function · 0.76
Test_exportFormat_Write
Function · 0.64
TestDeleteRun
Function · 0.64
TestListRun
Function · 0.64
TestViewRun
Function · 0.64
TestListRun
Function · 0.64
TestNewCmdComment
Function · 0.64
TestCommentRun
Function · 0.64
TestNewCmdCreate
Function · 0.64
TestCreateRun
Function · 0.64
TestNewCmdEdit
Function · 0.64