base

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

func RunCmd

func RunCmd(stdout, stderr io.Writer, root, cmd string, args ...string) error

func RunCmdCtx

func RunCmdCtx(stdout, stderr io.Writer, root, cmd string, args ...string) (context.CancelFunc, error)

func RunCtx

func RunCtx(root, cmd string, args ...string) (context.CancelFunc, error)

func RunInteractive

func RunInteractive(root, cmd string, args ...string) error

func RunInteractiveCtx

func RunInteractiveCtx(root, cmd string, args ...string) (context.CancelFunc, error)

func RunOutput

func RunOutput(root, cmd string, args ...string) ([]string, error)

func RunOutputCtx

func RunOutputCtx(root, cmd string, args ...string) ([]string, context.CancelFunc, error)

func RunOutputOne

func RunOutputOne(root, cmd string, args ...string) (string, error)

func RunOutputOneCtx

func RunOutputOneCtx(root, cmd string, args ...string) (string, context.CancelFunc, error)

Types

type CmdError

type CmdError struct {
	Root        string
	Cmd         string
	Args        []string
	ErrorOutput string
	// contains filtered or unexported fields
}

func Error

func Error(errorOutput string, err error, root, cmd string, args ...string) CmdError

func (CmdError) Error

func (ce CmdError) Error() string

Jump to

Keyboard shortcuts

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