Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Command string
Args []string
Dir string
Stdin string
Timeout time.Duration
// MaxOutputBytes caps combined stdout/stderr output; 0 means unlimited.
MaxOutputBytes int
// StreamTo, if non-nil, means stdout and stderr are also written here live,
// in addition to being captured in the Result.
StreamTo io.Writer
// Env holds extra KEY=VALUE entries appended to the inherited environment
// (later entries win), e.g. to neutralise a tool's config lookups.
Env []string
}
Click to show internal directories.
Click to hide internal directories.