Documentation
¶
Index ¶
- func DetermineWidth(verbose bool) int
- func EnvMapToEnv(env map[string]string) []string
- type Executor
- func (e *Executor) Dir(dir string) *Executor
- func (e *Executor) Run() error
- func (e *Executor) RunAndStream() 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) SetPrintFinalCommand(printFinalCommand bool) *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 DetermineWidth ¶
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) RunAndStream ¶
RunAndStream runs the command and streams the output to os.stdOut and os.StdErr
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.
func (*Executor) SetPrintFinalCommand ¶
SetPrintFinalCommand sets the printFinalCommand flag
Click to show internal directories.
Click to hide internal directories.