exec

package
v0.0.0-...-d74ee84 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 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
	SetEnv([]string)
}

Cmd is a hook for mocking

Jump to

Keyboard shortcuts

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