Documentation ¶
Index ¶
- Constants
- func RunCaptureWithArgs(cmd Executable, args []string, env map[string]string) (stdout, stderr string, err error)
- func RunWithArgs(cmd Executable, args []string, env map[string]string) error
- func WriteDemoConfig(vals map[string]string) (string, error)
- type Executable
- type Executor
- type ExitCoder
Constants ¶
View Source
const ( RootFlag = "root" HomeFlag = "home" TraceFlag = "trace" OutputFlag = "output" EncodingFlag = "encoding" )
Variables ¶
This section is empty.
Functions ¶
func RunCaptureWithArgs ¶
func RunCaptureWithArgs(cmd Executable, args []string, env map[string]string) (stdout, stderr string, err error)
RunCaptureWithArgs executes the given command with the specified command line args and environmental variables set. It returns string fields representing output written to stdout and stderr, additionally any error from cmd.Execute() is also returned
func RunWithArgs ¶
func RunWithArgs(cmd Executable, args []string, env map[string]string) error
RunWithArgs executes the given command with the specified command line args and environmental variables set. It returns any error returned from cmd.Execute()
Types ¶
type Executable ¶
type Executable interface {
Execute() error
}
Executable is the minimal interface to *corba.Command, so we can wrap if desired before the test
Click to show internal directories.
Click to hide internal directories.