execute

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Stdout io.Writer
	Stderr io.Writer
	Env    []string
}

func (Executor) Run

func (executor Executor) Run(ctx context.Context, params Params) (Result, error)

type Params

type Params struct {
	Cmd   string
	Args  []string
	Stdin io.Reader
}

type Result

type Result struct {
	ExitCode       int
	Cmd            string
	Stdout         string
	Stderr         string
	CombinedOutput string
}

Jump to

Keyboard shortcuts

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