Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(command string, args ...string) error

RunCommand is a simplified Command runner that includes command output only when the command produces an error.

func RunCommandWorkingDir

func RunCommandWorkingDir(command, wd string, args ...string) error

RunCommand is a simplified Command runner that includes command output only when the command produces an error.

Types

type PrefixWriter

type PrefixWriter struct {
	// contains filtered or unexported fields
}

func NewPrefixWriter

func NewPrefixWriter(w io.Writer, prefix string) *PrefixWriter

func (*PrefixWriter) Close

func (pw *PrefixWriter) Close() error

func (*PrefixWriter) Write

func (pw *PrefixWriter) Write(p []byte) (n int, err error)