Documentation ¶
Overview ¶
Package runcmd provides a convenience Run function for exec.Cmd which includes the original command along with the output and error streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandError ¶
type CommandError struct {
// contains filtered or unexported fields
}
CommandError is returned by run and provides an error string which includes the full command and the contents of the output and error streams.
func (*CommandError) Error ¶
func (e *CommandError) Error() string
Error provides a helpful error text.
type Streams ¶
type Streams struct {
// contains filtered or unexported fields
}
Streams provides access to the output and error buffers.
func Run ¶
Run the command and return the associated streams, and error if any. The error may be a CommandError.
Click to show internal directories.
Click to hide internal directories.