utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandRunner = func(cmd *exec.Cmd) error {
	return cmd.Run()
}

Functions

func DieIf

func DieIf(err error)

func ErrorIf

func ErrorIf(err error) bool

func Log

func Log(prefix, message string)

func PanicIf

func PanicIf(err error)

func Run

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

func RunCommand

func RunCommand(cmd *exec.Cmd) error

func RunInDir

func RunInDir(dir, command string, args ...string) error

func RunSilently

func RunSilently(command string, args ...string) error

Types

type RunError

type RunError struct {
	Command   *exec.Cmd
	ExecError error
}

func (*RunError) Error

func (e *RunError) Error() string

type RunFunc

type RunFunc func(*exec.Cmd) error

Jump to

Keyboard shortcuts

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