Documentation ¶
Index ¶
- func CallCommand(cmdstr string) ([]byte, error)
- func CallCommandForEffect(cmdstr string) error
- func CallCommandForEffectWithDebug(cmdstr string) error
- func CallCommandForEffectWithInputPipe(cmdstr, input string) error
- func CallCommandForEffectWithInputPipeAndDebug(cmdstr, input string) error
- func CallCommandSeparatingOutputStreams(cmdstr string) ([]byte, []byte, error)
- func CallCommandSilently(cmdstr string) ([]byte, error)
- func CaptureStdout(c callback) string
- func Escape(cmd string) string
- func Exists(filePath string) bool
- func OverrideBehavior(callOp CallOperation, ...) override.Override
- func OverrideFailure(callOp CallOperation) override.Override
- func OverrideIgnore(callOp CallOperation) override.Override
- func WaitUntil(out io.Writer, poll, timeout time.Duration, checkDone func() error) error
- func WithBehaviorFor(callOp CallOperation, ...) ([]byte, []byte, error)
- func WithResultsFrom(callOp CallOperation, outvalue []byte, errvalue []byte, err error, ...) ([]byte, []byte, error)
- type CallOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallCommand ¶
CallCommand will run an external command, displaying its output interactively and return its output.
func CallCommandForEffect ¶
func CallCommandSilently ¶
func CaptureStdout ¶ added in v0.1.0
func CaptureStdout(c callback) string
func OverrideBehavior ¶ added in v0.0.4
func OverrideFailure ¶ added in v0.0.4
func OverrideFailure(callOp CallOperation) override.Override
func OverrideIgnore ¶ added in v0.0.4
func OverrideIgnore(callOp CallOperation) override.Override
func WithBehaviorFor ¶ added in v0.0.3
Types ¶
type CallOperation ¶ added in v0.0.3
type CallOperation int
const ( CallCommandOp CallOperation = iota CallCommandSilentlyOp CallCommandSeparatingOutputStreamsOp CallCommandForEffectOp CallCommandForEffectWithDebugOp CallCommandForEffectWithInputPipeOp CallCommandForEffectWithInputPipeAndDebugOp )
Click to show internal directories.
Click to hide internal directories.