Documentation ¶
Index ¶
- type FakeCmdRunner
- func (f *FakeCmdRunner) Run(name string, args ...string) error
- func (f *FakeCmdRunner) RunWithOptions(opts cmd.CommandOpts, name string, args ...string) error
- func (f *FakeCmdRunner) StartWithStdoutPipe(opts cmd.CommandOpts, name string, arg ...string) (io.ReadCloser, error)
- func (f *FakeCmdRunner) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCmdRunner ¶
type FakeCmdRunner struct { Name string Args []string Opts cmd.CommandOpts Err error }
FakeCmdRunner provider the fake command runner
func (*FakeCmdRunner) Run ¶
func (f *FakeCmdRunner) Run(name string, args ...string) error
Run runs the fake command runner
func (*FakeCmdRunner) RunWithOptions ¶
func (f *FakeCmdRunner) RunWithOptions(opts cmd.CommandOpts, name string, args ...string) error
RunWithOptions runs the command runner with extra options
func (*FakeCmdRunner) StartWithStdoutPipe ¶
func (f *FakeCmdRunner) StartWithStdoutPipe(opts cmd.CommandOpts, name string, arg ...string) (io.ReadCloser, error)
StartWithStdoutPipe executes a command returning a ReadCloser connected to the command's stdout.
func (*FakeCmdRunner) Wait ¶
func (f *FakeCmdRunner) Wait() error
Wait waits for the command to exit.
Click to show internal directories.
Click to hide internal directories.