Documentation ¶
Overview ¶
Package cmd is DEPRECATED. Please use github.com/magefile/mage/sh or os/exec directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RunCommand = runCommand RunCommands = runCommands RunCommandsInParallel = runCommandsInParallel )
These vars are defined for easy mocking in unit tests.
Functions ¶
This section is empty.
Types ¶
type CommandLineError ¶
CommandLineError is a custom error we use for errors got from running commands
func (CommandLineError) Error ¶
func (c CommandLineError) Error() string
type Option ¶
Option enables further configuration of a Cmd.
func WithStdout ¶
func WithStdout() Option
WithStdout returns an option that sets the cmd output to stdout. This redirects output to stdout, should not use this option if you need the return value of the command.
Click to show internal directories.
Click to hide internal directories.