Documentation
¶
Overview ¶
Package runner provides a generic subprocess runner for acli. It handles timeout, signal forwarding, zombie cleanup, and both passthrough (interactive) and capture (parseable) execution modes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunPassThrough ¶
RunPassThrough is a shorthand for Run with PassThrough=true. Returns only the error.
Types ¶
type Options ¶
type Options struct {
// Args are the arguments passed to the binary (not including the binary itself).
Args []string
// Env variables merged on top of the current process environment.
// Format: "KEY=VALUE"
Env []string
// Stdin is forwarded to the child process stdin. If nil, os.Stdin is used
// only in PassThrough mode; otherwise /dev/null is used.
Stdin io.Reader
// PassThrough streams the child stdout/stderr directly to the terminal
// instead of capturing them. Use for interactive commands (adb shell,
// emulator, gradlew with live output).
PassThrough bool
// Timeout for the process. Zero means no timeout.
Timeout time.Duration
// WorkDir sets the working directory. Defaults to the current directory.
WorkDir string
}
Options configures how a subprocess is run.
Click to show internal directories.
Click to hide internal directories.