Documentation ¶ Rendered for linux/amd64 darwin/amd64 Index ¶ Variables func RunTimedSh(timeout time.Duration, command string) (string, error) type Output func RunTimed(timeout time.Duration, env []string, cmd string, args ...string) (Output, error) func Spawn(ctx context.Context, cmd *exec.Cmd) (Output, error) func (o Output) Combine() string Constants ¶ This section is empty. Variables ¶ View Source var ( ErrTimeout = errors.New("timeout") ErrFailToKill = errors.New("failed to kill process") ) Functions ¶ func RunTimedSh ¶ func RunTimedSh(timeout time.Duration, command string) (string, error) Command is wrapped in single quotes! Types ¶ type Output ¶ type Output struct { StdOut string StdErr string ExitCode int } func RunTimed ¶ func RunTimed(timeout time.Duration, env []string, cmd string, args ...string) (Output, error) func Spawn ¶ func Spawn(ctx context.Context, cmd *exec.Cmd) (Output, error) func (Output) Combine ¶ func (o Output) Combine() string Source Files ¶ View all Source files exec.go Click to show internal directories. Click to hide internal directories.