shell

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullWriter added in v0.1.1

type NullWriter struct {
}

func (*NullWriter) Write added in v0.1.1

func (v *NullWriter) Write(_ []byte) (int, error)

type Shell

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

func New

func New() *Shell

func (*Shell) Call added in v0.1.1

func (v *Shell) Call(ctx context.Context, command string) ([]byte, error)

func (*Shell) CallContext

func (v *Shell) CallContext(ctx context.Context, command string) error

func (*Shell) CallPackageContext

func (v *Shell) CallPackageContext(ctx context.Context, commands ...string) error

func (*Shell) CallParallelContext

func (v *Shell) CallParallelContext(ctx context.Context, commands ...string) error

func (*Shell) SetDir

func (v *Shell) SetDir(dir string)

func (*Shell) SetEnv

func (v *Shell) SetEnv(key, value string)

func (*Shell) SetShell

func (v *Shell) SetShell(shell string)

func (*Shell) SetWriter added in v0.1.1

func (v *Shell) SetWriter(w io.Writer)

Jump to

Keyboard shortcuts

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