exec

package
v0.5.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookPath added in v0.5.2

func LookPath(name string) (path string, found bool)

Types

type Runner

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

func NewRunner

func NewRunner() *Runner

Call Close() when done.

func (*Runner) Add

func (r *Runner) Add(name string, defaultArgs ...string) (found bool)

func (*Runner) AddMem added in v0.3.1

func (r *Runner) AddMem(name string, data []byte, defaultArgs ...string) error

func (*Runner) Close added in v0.3.1

func (r *Runner) Close() error

func (*Runner) Has

func (r *Runner) Has(name string) bool

func (*Runner) Run

func (r *Runner) Run(name string, stdout io.Writer, stdin io.Reader, args ...string) error

func (*Runner) Start added in v0.4.0

func (r *Runner) Start(name string, stdout io.Writer, stderr io.Writer, stdin io.Reader, args ...string) (*exec.Cmd, error)

Jump to

Keyboard shortcuts

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