Documentation ¶
Index ¶
- func EnvMapToEnv(env map[string]string) []string
- type Executor
- func (e *Executor) Dir(dir string) *Executor
- func (e *Executor) Run() error
- func (e *Executor) RunWithWriters(stdOut, errOut io.Writer) error
- func (e *Executor) SetArgs(args ...string) *Executor
- func (e *Executor) SetEnv(env []string) *Executor
- func (e *Executor) StdOut() (string, error)
- func (e *Executor) Stdin(in io.Reader) *Executor
- func (e *Executor) String() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvMapToEnv ¶
EnvMapToEnv converts a map of environment variables to a slice of strings
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) RunWithWriters ¶
RunWithWriters executes the command and writes the output to the provided writers If stdOut or stdErr are nil, they are not used.
Click to show internal directories.
Click to hide internal directories.