Documentation ¶
Overview ¶
Package sh implements shell output formatting utilities that decorate the execution of targets and commands with useful messages.
Index ¶
- func Exec(env map[string]string, stdout, stderr io.Writer, cmd string, args ...string) (bool, error)
- func Output(cmd string, args ...string) (string, error)
- func PrintStartTarget(namespace, target string)
- func Run(cmd string, args ...string) error
- func RunV(cmd string, args ...string) error
- func RunWithV(env map[string]string, cmd string, args ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(env map[string]string, stdout, stderr io.Writer, cmd string, args ...string) (bool, error)
Exec is a wrapper of mage's `sh.Exec` and exists in this package for grouping purposes.
func Output ¶
Output is a wrapper of mage's `sh.Output` and exists in this package for grouping purposes.
func PrintStartTarget ¶
func PrintStartTarget(namespace, target string)
PrintStartTarget prints a message to indicate the start of execution of the specified namespace and target.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.