Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsStdinTerminal = func() bool { return term.IsTerminal(int(os.Stdin.Fd())) }
IsStdinTerminal reports whether stdin is attached to an interactive terminal (TTY), as opposed to a pipe, a file or /dev/null. It is used to know if interactive prompts can be displayed. Note: checking os.ModeCharDevice is not enough since /dev/null (the default stdin in most CI systems) is a character device but not a terminal. It is a variable, so it can be overridden in tests.
Functions ¶
func FromStdout ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.