Documentation ¶
Overview ¶
Package util provide different utilities that are used by rocker TODO: this should be refactored to a different packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAbsolute ¶
MakeAbsolute makes any path absolute, either according to a HOME or from a working directory
func PrefixPipe ¶
PrefixPipe creates an io wrapper that will add [prefix] to every line written
func ResolvePath ¶
ResolvePath resolves the subPath from baseDir such that the resultig path cannot go outside the baseDir
Types ¶
type Cmd ¶
type Cmd struct { Args []string Env []string Dir string Stream io.Writer Reader *io.PipeReader Writer *io.PipeWriter ExitStatus int Error error }
Cmd is a wrapper over os/exec and provides extra convenience stuff
func Exec ¶
Exec runs the command and grabs exit code at the end If Stream property is present, then it also pipes stdout/stderr to it
Click to show internal directories.
Click to hide internal directories.