exec

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = func(name string, args ...string) Cmd {
	return &realCmd{exec.Command(name, args...)}
}

Command is a hook for mocking

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	StdoutPipe() (io.ReadCloser, error)
	StderrPipe() (io.ReadCloser, error)
	Start() error
	Wait() error
	Kill() error
	Output() ([]byte, error)
	Run() error
}

Cmd is a hook for mocking

Jump to

Keyboard shortcuts

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