Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Streams ¶
Streams carries process stdio explicitly across package boundaries. Command entrypoints populate it and pass it into package code that needs terminal input or user-visible output.
type TerminalInput ¶
TerminalInput is a reader backed by a terminal file descriptor. Password prompts and other terminal interactions need both behaviors.
type TerminalStreams ¶
type TerminalStreams struct {
Streams
Terminal TerminalInput
}
TerminalStreams extends Streams with a terminal-backed stdin for operations that need a file descriptor, such as password prompts.
func NewTerminal ¶
func NewTerminal(stdin TerminalInput, stdout, stderr io.Writer) TerminalStreams
NewTerminal constructs a terminal-capable stream bundle.
Click to show internal directories.
Click to hide internal directories.