exec

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsideHelperProcess

func InsideHelperProcess()

Types

type RealRunner

type RealRunner struct{}

func (RealRunner) Run

func (r RealRunner) Run(cmd string, args ...string) ([]byte, error)

type Runner

type Runner interface {
	Run(string, ...string) ([]byte, error)
}

type TestRunner

type TestRunner struct {
	ExpectedCommand []string
	Output          []byte
	ExtraEnv        map[string]string
	ExitCode        int
}

func (TestRunner) Run

func (r TestRunner) Run(command string, args ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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