term

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 8 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) InteractiveRun

func (r Runner) InteractiveRun(cmd *exec.Cmd) (err error)

func (Runner) Run

func (r Runner) Run(cmd *exec.Cmd) (stdout, stderr string, exitCode int, err error)

type RunnerOption

type RunnerOption func(*Runner)

func WithDir

func WithDir(path string) RunnerOption

func WithStderr

func WithStderr(stderr io.Writer) RunnerOption

func WithStdin added in v1.1.7

func WithStdin(stdin io.Reader) 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