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

Function isTTYErr

cli/root.go:1123–1125  ·  view source on GitHub ↗

isTTYErr returns whether the passed invocation is having stderr written to a TTY

(inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

1121
1122// isTTYErr returns whether the passed invocation is having stderr written to a TTY
1123func isTTYErr(inv *serpent.Invocation) bool {
1124 return isTTYWriter(inv, inv.Stderr)
1125}
1126
1127func isTTYWriter(inv *serpent.Invocation, writer io.Writer) bool {
1128 // If the `--force-tty` command is available, and set,

Callers 1

sshMethod · 0.85

Calls 1

isTTYWriterFunction · 0.85

Tested by

no test coverage detected