exec

package
v2.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	CombinedOutput() ([]byte, error)
	Output() ([]byte, error)
	Run() error
	RunDynamic() error
}

type Exec

type Exec interface {
	Command(name string, arg ...Input) Command
}

func New

func New(ctx context.Context, l Logger, workingDir string, envVars ...Input) Exec

func NewHome

func NewHome(ctx context.Context, l Logger, workingDir string, envVars ...Input) (Exec, error)

type Input

type Input interface {
	Parse() string
	Debug() string
	IsPrivate() bool
}

func Private

func Private(value string, debugOutput ...string) Input

func Public

func Public(values ...string) []Input

func Public1

func Public1(value string) Input

type Logger

type Logger interface {
	Debugf(template string, args ...interface{})
	Debug(msg ...interface{})
}

Jump to

Keyboard shortcuts

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