magelib

package module
v0.0.0-...-380f8d5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MkTempDirOut = sh.OutCmd("mktemp", "-d")
	GoInstall    = sh.RunCmd("go", "install")
	GoUpdate     = sh.RunCmd("go", "get", "-u")
	GoGet        = sh.RunCmd("go", "get")
	GoEnvOut     = sh.OutCmd("go", "env")
	GoMod        = sh.RunCmd("go", "mod")
	GoModVendor  = sh.RunCmd("go", "mod", "vendor")
	GoModTidy    = sh.RunCmd("go", "mod", "tidy")
)

Functions

func ChainCmds

func ChainCmds(fns ...Cmd) error

func Fatal

func Fatal(args ...interface{}) error

func FatalError

func FatalError(err error) error

func Fatalf

func Fatalf(format string, args ...interface{}) error

func InDirectory

func InDirectory(path string, cmd Cmd) (err error)

func PipeOutCmd

func PipeOutCmd(fn OutCmdFunc, args ...string) pipe.Pipe

Types

type ArgsMap

type ArgsMap map[string]string

type Cmd

type Cmd func() error

func ChainCmdsCmd

func ChainCmdsCmd(fns ...Cmd) Cmd

type CmdWithArgs

type CmdWithArgs func(args ...string) error

type OutCmdFunc

type OutCmdFunc func(args ...string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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