execute

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeError

func MakeError(err string) error

Types

type Command

type Command struct {
	File string
	Args []string
}

func MakeCommand

func MakeCommand(file string, args ...string) Command

type Execution

type Execution struct {
	Stdout <-chan []byte
	Stderr <-chan []byte
	Stdin  chan<- []byte
	Exit   <-chan error
	Kill   func() error
}

func Execute

func Execute(command Command, setup ...func(e *exec.Cmd)) (Execution, error)

type ExecutionError

type ExecutionError struct {
	ErrorText string
}

func (ExecutionError) Error

func (a ExecutionError) Error() string

Jump to

Keyboard shortcuts

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