Versions in this module Expand all Collapse all v0 v0.6.0 Feb 3, 2026 Changes in this version + func Exists(name string) bool + func MustRun(name string, args ...string) string + func RunBash(script string) (string, error) + func RunBashInDir(dir, script string) (string, error) + func RunInDir(dir, name string, args ...string) (string, error) + func RunSimple(name string, args ...string) (string, error) + func RunWithEnv(env []string, name string, args ...string) (string, error) + type Command struct + func New(name string, args ...string) *Command + func (c *Command) CombinedOutput() (string, error) + func (c *Command) Dir(dir string) *Command + func (c *Command) Env(env ...string) *Command + func (c *Command) Environment() []string + func (c *Command) Output() (string, error) + func (c *Command) Run() *Result + func (c *Command) RunContext(ctx context.Context) *Result + func (c *Command) RunStreaming(opts StreamOptions) *Result + func (c *Command) Start() (*Process, error) + func (c *Command) Stdin(r io.Reader) *Command + func (c *Command) String() string + func (c *Command) Timeout(d time.Duration) *Command + type ContainerInfo struct + ID string + Image string + Name string + Ports []string + Status string + type Docker struct + func NewDocker() *Docker + func (d *Docker) ContainerExists(name string) (bool, error) + func (d *Docker) ListContainers(filter string) ([]ContainerInfo, error) + func (d *Docker) Logs(container string, tail int) (string, error) + func (d *Docker) RemoveContainer(name string) error + func (d *Docker) StopContainer(name string) error + type Grove struct + func NewGrove(binary string) *Grove + func (g *Grove) AgentDown() error + func (g *Grove) AgentUp(detached bool) error + func (g *Grove) InDir(dir string) *Grove + func (g *Grove) Output(args ...string) (string, error) + func (g *Grove) Run(args ...string) *Result + func (g *Grove) ServiceDown(service string) error + func (g *Grove) ServiceUp(service string, detached bool) error + func (g *Grove) Status() (string, error) + type Process struct + Cmd *exec.Cmd + PID int + func (p *Process) Kill() error + func (p *Process) Stderr() string + func (p *Process) Stdout() string + func (p *Process) Wait(timeout time.Duration) *Result + type Result struct + Duration time.Duration + Error error + ExitCode int + Stderr string + Stdout string + func (r *Result) AssertExitCode(expectedCode int) error + func (r *Result) AssertFailure() error + func (r *Result) AssertStderrContains(patterns ...string) error + func (r *Result) AssertStderrEmpty() error + func (r *Result) AssertStderrNotContains(patterns ...string) error + func (r *Result) AssertStdoutContains(patterns ...string) error + func (r *Result) AssertStdoutEmpty() error + func (r *Result) AssertStdoutNotContains(patterns ...string) error + func (r *Result) AssertSuccess() error + type StreamHandler func(line string, isStderr bool) + type StreamOptions struct + BufferSize int + CombineOutput bool + Handler StreamHandler v0.0.1 Jan 16, 2026