shell

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 42

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	// contains filtered or unexported fields
}

Shell struct

func New

func New(ctx context.Context, l log.Logger, inputs ...interface{}) *Shell

func (*Shell) Args

func (s *Shell) Args(args ...string) *Shell

func (*Shell) CombinedOutput added in v0.3.0

func (s *Shell) CombinedOutput() ([]byte, error)

func (*Shell) Dir

func (s *Shell) Dir(dir string) *Shell

func (*Shell) Env

func (s *Shell) Env(env ...string) *Shell

func (*Shell) Output

func (s *Shell) Output() ([]byte, error)

func (*Shell) Quiet

func (s *Shell) Quiet() *Shell

func (*Shell) Run

func (s *Shell) Run() error

func (*Shell) Stderr

func (s *Shell) Stderr(v io.Writer) *Shell

func (*Shell) Stdin

func (s *Shell) Stdin(v io.Reader) *Shell

func (*Shell) Stdout

func (s *Shell) Stdout(v io.Writer) *Shell

func (*Shell) Wait

func (s *Shell) Wait() error

Jump to

Keyboard shortcuts

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