Documentation ¶
Overview ¶
Package exec implements command execution functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command wraps exec.Command with specific functionality. This differentiates itself from the standard library by always collecting stdout and stderr. Command improves the UX of exec.Command for our specific use case.
type Option ¶
type Option func(*Command)
Option is a functional option type that modifies a Command.
func WithArgs ¶
WithArgs sets the arguments for the command such as `get pods -n kube-system` to the command `kubectl`.
func WithCommand ¶
WithCommand defines the command to run such as `kubectl` or `kind`.
Click to show internal directories.
Click to hide internal directories.