package
0.27.0-alpha
Repository: https://github.com/kubernetes-sigs/kind.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 convenience wrapper over DefaultCmder.Command.
CommandContext is a convenience wrapper over DefaultCmder.CommandContext.
InheritOutput sets cmd's output to write to the current process's stdout and stderr.
Output is like os/exec's cmd.Output, but over our Cmd interface.
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.
PrettyCommand takes arguments identical to Cmder.Command, it returns a pretty printed command that could be pasted into a shell.
RunErrorForError returns a RunError if the error contains a RunError.
RunWithStdinWriter runs cmd with writerFunc piped to stdin.
RunWithStdoutReader runs cmd with stdout piped to readerFunc.

# Variables

DefaultCmder is a LocalCmder instance used for convenience, 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.
RunError represents an error running a Cmd.

# Interfaces

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