MCPcopy Create free account
hub / github.com/basecamp/hey-cli / stdoutIsTerminal

Function stdoutIsTerminal

internal/cmd/formatting.go:96–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func stdoutIsTerminal() bool {
97 return term.IsTerminal(int(os.Stdout.Fd())) //nolint:gosec // G115: fd fits in int
98}
99
100func readStdin() (string, error) {
101 data, err := io.ReadAll(os.Stdin)

Callers 1

newRootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected