Documentation ¶
Overview ¶
Package command provides functionality for working with programs the host OS. It provides a high level API over os/exec for running commands, which is easier to use for common cases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command manages the configuration of a command that will be run in a child process.
type Option ¶
type Option func(*Command)
Option is a function that takes a command and applies a configuration to it.
func WithStderr ¶
WithStderr sets the writer that the command's stderr should be written to.
func WithStdout ¶
WithStdout sets the writer that the command's stdout should be written to.
Click to show internal directories.
Click to hide internal directories.