Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL