Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsInputTerminal ¶
func IsInputTerminal() bool
func IsOutputTerminal ¶
func IsOutputTerminal() bool
func PipedInput ¶
PipedInput reads all data available on stdin when stdin is not a terminal (a pipe or redirect). It returns an empty slice on an interactive terminal. A read failure is returned as an error rather than a panic, so a broken pipe on the agent/scripted input path surfaces as a normal error instead of a crash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.