commandx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandResult

type CommandResult struct {
	Status  int
	Stdout  bytes.Buffer
	Stderr  bytes.Buffer
	Success bool
	Err     error
}

func RunCommand

func RunCommand(command []string, ops ...Option) *CommandResult

func RunCommandForLast

func RunCommandForLast(commands [][]string, ops ...Option) (bool, *CommandResult)

func (*CommandResult) OutputOrFatal

func (r *CommandResult) OutputOrFatal()

type Option

type Option func(o *option)

func WithDir

func WithDir(dir string) Option

Jump to

Keyboard shortcuts

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