exec

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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