Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Dir string
Name string
Args []string
// Stdin is optional input piped to the command's stdin.
Stdin string
}
Command describes a subprocess execution.
type OSRunner ¶
type OSRunner struct{}
OSRunner executes commands via os/exec.
type StreamLineHandler ¶
type StreamLineHandler func(stream, line string)
StreamLineHandler receives one output line from a subprocess stream.
type StreamRunner ¶
type StreamRunner interface {
RunStream(ctx context.Context, cmd Command, handler StreamLineHandler) (Result, error)
}
StreamRunner is an optional runner that can stream line-by-line output.
Click to show internal directories.
Click to hide internal directories.