command

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectedCommandStringEqualsActualCommand

func ExpectedCommandStringEqualsActualCommand(t *testing.T, expectedCommandString string, actualCommand Output)

func IsError

func IsError(output Output) bool

Types

type Output

type Output struct {
	CommandString string
	Error         error
	Output        string
}

func Error

func Error(err error) Output

func ErrorString

func ErrorString(err string) Output

func Run

func Run(cmd exec.Cmd, options *RunOptions) Output

type RunOptions

type RunOptions struct {
	DryRun bool
}

Jump to

Keyboard shortcuts

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