exec

package
v0.0.0-...-4e49b11 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InPath

func InPath(name string) (bool, error)

func WithArgs

func WithArgs(args ...string) runOpt

func WithDir

func WithDir(dir string) runOpt

func WithEnv

func WithEnv(vars ...string) runOpt

func WithInteractive

func WithInteractive(interactive bool) runOpt

func WithOSStdout

func WithOSStdout() runOpt

Types

type Output

type Output struct {
	ExitCode  int
	ExitError *exec.ExitError
	Stdout    string
	Stderr    string
}

func Run

func Run(name string, fOpts ...runOpt) (*Output, error)

func (Output) Lines

func (o Output) Lines() []string

Jump to

Keyboard shortcuts

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