MCPcopy Index your code
hub / github.com/coder/coder / isTTYOut

Function isTTYOut

cli/root.go:1118–1120  ·  view source on GitHub ↗

isTTYOut returns whether the passed invocation is having stdout written to a TTY

(inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

1116
1117// isTTYOut returns whether the passed invocation is having stdout written to a TTY
1118func isTTYOut(inv *serpent.Invocation) bool {
1119 return isTTYWriter(inv, inv.Stdout)
1120}
1121
1122// isTTYErr returns whether the passed invocation is having stderr written to a TTY
1123func isTTYErr(inv *serpent.Invocation) bool {

Callers 5

PrintLogoFunction · 0.85
completionMethod · 0.85
installCompletionFunction · 0.85
openURLFunction · 0.85
configSSHMethod · 0.85

Calls 1

isTTYWriterFunction · 0.85

Tested by

no test coverage detected