Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Whether to attach stdin configuration. assume false
Interactive bool
// Whether to attach stdout configuration. assume false aka hide output
ShowOutput bool
// Whether to attach stdout configuration. assume false aka show err output
SuppressErrOutput bool
}
func (Options) WithInteractive ¶
func (Options) WithShowOutput ¶
func (Options) WithSuppressErrOutput ¶
type Runnable ¶
type Runnable interface {
// Output runs and returns output.
Output() ([]byte, error)
// String provides a human readable version for debugging
String() string
}
Runnable is something tha can run multiple times.
func AddEnvironment ¶
AddEnvironment add environment variables to a given Runnable. This will only do something if the runnable was built with NewCMDRunner.
Click to show internal directories.
Click to hide internal directories.