package
0.9.0
Repository: https://github.com/k0sproject/bootloose.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.
CommandWithLogging is a convience wrapper over Command display any errors received by the executed command.
No description provided by the author
No description provided by the author
InheritOutput sets cmd's output to write to the current process's stdout and stderr.
RunLoggingOutputOnFail runs the cmd, logging error output if Run returns an error.

# Variables

DefaultCmder is a LocalCmder instance used for convienience, packages originally using os/exec.Command can instead use pkg/kind/exec.Command which forwards to this instance TODO(bentheelder): swap this for testing TODO(bentheelder): consider not using a global for this :^).

# Structs

LocalCmd wraps os/exec.Cmd, implementing the kind/pkg/exec.Cmd 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.