run

package
v0.0.0-...-30f928a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Args   []string
	Stdout []byte
	Stderr []byte
	RC     int
}

Result - return from command execution.

func Capture

func Capture(args ...string) Result

Capture - execute args and Result

func (Result) Error

func (r Result) Error() error

func (Result) ErrorOnRCs

func (r Result) ErrorOnRCs(rcOK []int) error

func (Result) String

func (r Result) String() string

String - return a formatted string for command.

Jump to

Keyboard shortcuts

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