Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
96
func
stdoutIsTerminal() bool {
97
return
term.IsTerminal(int(os.Stdout.Fd()))
//nolint:gosec // G115: fd fits in int
98
}
99
100
func
readStdin() (string, error) {
101
data, err := io.ReadAll(os.Stdin)
Callers
1
newRootCmd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected