Documentation
¶
Overview ¶
Package clitest provides API meant to support testing Joe CLI applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// Stdin specifies the app's standard input.
//
// If Stdin is nil, it reads from the null device.
Stdin io.Reader
// Stdout and Stderr specify the app's standard output and error.
//
// If either is nil, Run connects the corresponding file descriptor
// to the null device.
Stdout io.Writer
Stderr io.Writer
// contains filtered or unexported fields
}
Cmd represents an app being prepared or run.
func CommandContext ¶
CommandContext produces a command on the given context.
func (*Cmd) CombinedOutput ¶
CombinedOutput runs the app and returns its combined standard output and standard error.