Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ SetStdinTTY
Method
SetStdinTTY
pkg/iostreams/iostreams.go:150–153 ·
view source on GitHub ↗
(isTTY bool)
Source
from the content-addressed store, hash-verified
148
}
149
150
func
(s *IOStreams) SetStdinTTY(isTTY bool) {
151
s.stdinTTYOverride = true
152
s.stdinIsTTY = isTTY
153
}
154
155
func
(s *IOStreams) IsStdinTTY() bool {
156
if
s.stdinTTYOverride {
Callers
15
Test
Function · 0.95
newTestVirtualTerminalIOStreams
Function · 0.95
TestDeleteRun
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
TestEditRun
Function · 0.80
Test_SmartBaseRepo
Function · 0.80
Test_NewCmdView
Function · 0.80
Calls
no outgoing calls
Tested by
15
Test
Function · 0.76
newTestVirtualTerminalIOStreams
Function · 0.76
TestDeleteRun
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
TestEditRun
Function · 0.64
Test_SmartBaseRepo
Function · 0.64
Test_NewCmdView
Function · 0.64