run

package
v0.0.0-...-ba43356 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = func(name string, arg ...string) RunCmd {
	return &cmdWrap{exec.Command(name, arg...)}
}

Generate a run command. Provides a hook for testing

Find an executable within path. Provides a hook for testing

Functions

This section is empty.

Types

type CmdError

type CmdError struct {
	Args   []string
	Err    error
	Stderr *bytes.Buffer
}

CmdError provides more visibility into why an exec.Cmd had failed

func (CmdError) Error

func (e CmdError) Error() string

func (CmdError) Unwrap

func (e CmdError) Unwrap() error

type RunCmd

type RunCmd interface {
	Run() error
	Output() ([]byte, error)
}

Jump to

Keyboard shortcuts

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