cmd

package
v0.0.0-...-53804fc Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2016 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCmd

func RunCmd(name string, args ...string) (stdout string, stderr string, err error)

Types

type CmdError

type CmdError struct {
	Stderr string
	Err    error
}

func (CmdError) Error

func (ce CmdError) Error() string

type CmdRunner

type CmdRunner interface {
	SetError(cmdError CmdError)
	RunCmd(name string, args ...string) (string, CmdError)
	RunInNewRunner(name string, args ...string) (string, CmdError)
	NewRunner() CmdRunner
	LastError() CmdError
	HasError() bool
}

func CreateCmdConsole

func CreateCmdConsole() CmdRunner

func CreateFailFastCmdRunner

func CreateFailFastCmdRunner(innerCmdRunner CmdRunner) CmdRunner

Jump to

Keyboard shortcuts

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