exec

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 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 CommandNotRegisteredError added in v0.5.29

type CommandNotRegisteredError struct {
	CommandName string
}

func (*CommandNotRegisteredError) Error added in v0.5.29

func (e *CommandNotRegisteredError) Error() string

type Runner

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

func NewRunner

func NewRunner() *Runner

func (*Runner) Add

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

func (*Runner) AddWithName added in v0.6.0

func (r *Runner) AddWithName(registryName string, executableName string, defaultArgs ...string) (found bool)

func (*Runner) Cmd added in v0.5.29

func (r *Runner) Cmd(ctx context.Context, name string, args ...string) (*exec.Cmd, 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