Versions in this module Expand all Collapse all v0 v0.1.1 Sep 27, 2018 Changes in this version + type Context struct + LogPath *string + WorkingDir *string + func NewContext(executablePath string, logPath, workingDir *string, envVars map[string]string) (*Context, error) + func (ec *Context) AddFile(filename string, content []byte) error + func (ec *Context) Exec(stdout, stderr io.Writer, cleanup func(), args ...string) (*Result, error) + func (ec *Context) ExecSync(args ...string) (string, string, error) + func (ec *Context) ExecWithLogFile(logPrefix string, args ...string) (*Result, string, error) + func (ec *Context) ExecWithLogFileSync(logPrefix string, args ...string) (string, error) + func (ec *Context) LogFile(logFilename string) (io.ReadCloser, error) + func (ec *Context) SetEnvVars(envVars map[string]string) + type Result struct + Pid int + Wait func() error