term

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(cmd *exec.Cmd)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...RunnerOption) *Runner

func (Runner) BackgroundRun

func (r Runner) BackgroundRun(name string, args []string) error

func (Runner) InteractiveRun

func (r Runner) InteractiveRun(name string, args []string) error

func (Runner) Run

func (r Runner) Run(name string, args []string, options ...Option) error

type RunnerOption

type RunnerOption func(*Runner)

func WithDir

func WithDir(path string) RunnerOption

func WithStderr

func WithStderr(stderr io.Writer) RunnerOption

func WithStdout

func WithStdout(stdout io.Writer) RunnerOption

Jump to

Keyboard shortcuts

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