shell

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(stdout io.Writer, name string, arguments ...string) func(...Option) (bool, error)

func ExecWaitIf

func ExecWaitIf(
	conditions func(line string) bool,
	stdout io.Writer, name string, arguments ...string,
) func(...Option) (func() (bool, error), bool, error)

func Output

func Output(name string, arguments ...string) func(...Option) (string, error)

func Run

func Run(name string, arguments ...string) func(...Option) error

func WaitIf

func WaitIf(conditions func(line string) bool, name string, arguments ...string) func(...Option) (func() error, error)

Types

type Option

type Option func(*commandOptions)

func Args

func Args(arguments ...string) Option

func CurrentDir added in v0.13.0

func CurrentDir() Option

func Dir

func Dir(directory string) Option

func Env

func Env(environment map[string]string) Option

func Stderr

func Stderr(stderr io.Writer) Option

func StderrSilent

func StderrSilent() Option

func Stdin added in v0.11.0

func Stdin(stdin io.Reader) Option

func Verbose

func Verbose() Option

Jump to

Keyboard shortcuts

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