Documentation ¶
Index ¶
- func IsSignaled(err error) bool
- func MustStop(ctx context.Context, cmd *exec.Cmd) error
- func Stop(cmd *exec.Cmd) error
- func WaitCmd(ctx context.Context, cmd *exec.Cmd, startResult *Result) error
- type Cfg
- type Result
- func Run(command ...string) (*Result, error)
- func RunCmd(ctx context.Context, cmd *exec.Cmd, cfg *Cfg, ...) (*Result, error)
- func RunRaw(ctx context.Context, cfg *Cfg, beforeRun ...func(cmd *exec.Cmd) error) (*Result, error)
- func StartCmd(cmd *exec.Cmd, beforeRun ...func(cmd *exec.Cmd) error) *Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSignaled ¶
IsSignaled err is Cmd.Wait() or Cmd.Run() result error.
Types ¶
type Result ¶
type Result struct { Stdout []string `json:"stdout"` Stderr []string `json:"stderr"` ExitCode int `json:"exitCode"` Pid int `json:"pid"` StartTimeNano int64 `json:"startTimeNano"` StopTimeNano int64 `json:"stopTimeNano"` Signaled bool `json:"signaled"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.