execute

package
v6.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Stdout io.Writer
	Stderr io.Writer
	Env    []string
}

func (*Executor) Run

func (e *Executor) Run(ctx context.Context, params *Params) (*Result, error)

type Params

type Params struct {
	Cmd   string
	Args  []string
	Stdin io.Reader
}

type Result

type Result struct {
	ExitCode       int
	Cmd            string
	Stdout         string
	Stderr         string
	CombinedOutput string
}

Jump to

Keyboard shortcuts

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