exec

package
v0.0.0-...-634d4eb Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookPath

func LookPath(file string) (string, error)

Types

type Command

type Command struct {
	Name       string
	Args       []string
	WorkingDir string
	Env        map[string]string
	StdIn      io.Reader
}

func NewCommand

func NewCommand(name string, args ...string) *Command

func (*Command) AddEnv

func (c *Command) AddEnv(envToAdd map[string]string)

func (*Command) Run

func (c *Command) Run() error

type Error

type Error struct {
	ExitCode int
	Message  string
	StdErr   []byte
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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