package
0.0.0-20191202013547-ff55af68d380
Repository: https://github.com/gosoon/kubernetes-operator.git
Documentation: pkg.go.dev

# Functions

CombinedOutputLines is like os/exec's cmd.CombinedOutput(), but over our Cmd interface, and instead of returning the byte buffer of stderr + stdout, it scans these for lines and returns a slice of output lines.
Command is a convience wrapper over DefaultCmder.Command.
InheritOutput sets cmd's output to write to the current process's stdout and stderr.
OutputLines is like os/exec's cmd.Output(), but over our Cmd interface, and instead of returning the byte buffer of stdout, it scans these for lines and returns a slice of output lines.
RunLoggingOutputOnFail runs the cmd, logging error output if Run returns an error.
RunWithStdinWriter runs cmd with writerFunc piped to stdin.
RunWithStdoutReader runs cmd with stdout piped to readerFunc.

# Variables

DefaultCmder is a LocalCmder instance used for convienience.

# Structs

LocalCmd wraps os/exec.Cmd, implementing interface.
LocalCmder is a factory for LocalCmd, implementing Cmder.

# Interfaces

Cmd abstracts over running a command somewhere, this is useful for testing.
Cmder abstracts over creating commands.