script

package
v0.0.0-...-ab3fb9e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(flagSet *mtool.Flags)

Types

type Command

type Command struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

func Cmd

func Cmd(args ...string) *Command

func (*Command) IO

func (cmd *Command) IO(input io.Reader, output io.Writer) *Command

func (*Command) Run

func (cmd *Command) Run() error

func (*Command) Stdout

func (cmd *Command) Stdout() Output

type Output

type Output []byte

func (Output) ShSplit

func (o Output) ShSplit() []string

func (Output) Split

func (o Output) Split(sep string) []string

func (Output) String

func (o Output) String() string

Jump to

Keyboard shortcuts

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