exe

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, log logr.Logger, options *Opt, stdin string, cmd string, args ...string) (stdout string, stderr string, err error)

Run executes 'cmd' with 'stdin', 'args' and 'options'. Upon completion it returns stdout and stderr. Ctx is optional.

Types

type Opt

type Opt struct {
	// Path is the working directory.
	Dir string
	// Env is the execution environment.
	Env []string
}

Opt are the exec options, see https://godoc.org/os/exec#Cmd for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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