Documentation
¶
Index ¶
- Constants
- type Result
- func Run(argv []string, stdout, stderr io.Writer) (Result, error)
- func RunInDir(argv []string, dir string, stdout, stderr io.Writer) (Result, error)
- func RunInDirWithExecutable(argv []string, executable string, dir string, stdout, stderr io.Writer) (Result, error)
- func RunInDirWithExecutableEnv(argv []string, executable string, dir string, env []string, ...) (Result, error)
Constants ¶
View Source
const MaxCapturedOutput = 1 << 20 // 1 MiB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Argv []string `json:"argv"`
ExitCode int `json:"exit_code"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
StdoutTruncated bool `json:"stdout_truncated"`
StderrTruncated bool `json:"stderr_truncated"`
}
Click to show internal directories.
Click to hide internal directories.