runner

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyOutput = errors.New("empty output received")
)

Error Codes

Functions

func TrimmedOutput

func TrimmedOutput(name string, arg ...string) (string, error)

TrimmedOutput runs an executable and returns its output as a string. Returns an error if the executable failes. Returns ErrEmptyOutput if there is no output.

func WDTrimmedOutput

func WDTrimmedOutput(wd string, name string, arg ...string) (string, error)

WDTrimmedOutput works similarly to TrimmedOutput, but acceprs work dir for command execution as a first parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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