package
1.15.0
Repository: https://github.com/magefile/mage.git
Documentation: pkg.go.dev

# Functions

CmdRan examines the error to determine if it was generated as a result of a command running via os/exec.Command.
Copy robustly copies the source file to the destination, overwriting the destination if necessary.
Exec executes the command, piping its stdout and stderr to the given writers.
ExitStatus returns the exit status of the error if it is an exec.ExitError or if it implements ExitStatus() int.
OutCmd is like RunCmd except the command returns the output of the command.
Output runs the command and returns the text from stdout.
OutputWith is like RunWith, but returns what is written to stdout.
Rm removes the given file or directory even if non-empty.
Run is like RunWith, but doesn't specify any environment variables.
RunCmd returns a function that will call Run with the given command.
RunV is like Run, but always sends the command's stdout to os.Stdout.
RunWith runs the given command, directing stderr to this program's stderr and printing stdout to stdout if mage was run with -v.
RunWithV is like RunWith, but always sends the command's stdout to os.Stdout.