run

package
v2.15.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cancelTimeout time.Duration, cmdLine string, opts *Opts) ([]string, []string, error)

Run runs command and returns stdout and stderr lines. Both are also tee'd to os.Stderr for a progress reporting. When ctx is canceled, SIGTERM is sent, and then SIGKILL after cancelTimeout.

Types

type Opts

type Opts struct {
	Env []string
}

Opts contains run options.

Jump to

Keyboard shortcuts

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