sh

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package sh implements shell output formatting utilities that decorate the execution of targets and commands with useful messages.

Index

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

func Output(cmd string, args ...string) (string, error)

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.

func Run

func Run(cmd string, args ...string) error

Run is a wrapper of mage's `sh.Run` and exists in this package for grouping purposes.

func RunV

func RunV(cmd string, args ...string) error

RunV decorates mage's `sh.RunV` with a printed message of the command to be executed.

func RunWithV

func RunWithV(env map[string]string, cmd string, args ...string) error

RunWithV decorates mage's `sh.RunWithV` with a printed message of the command to be executed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL