shell

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullWriter

type NullWriter struct {
}

func (*NullWriter) Write

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

type Shell

type Shell interface {
	Close()
	SetEnv(key, value string)
	SetDir(dir string)
	SetShell(shell string)
	SetWriter(w io.Writer)
	CallPackageContext(ctx context.Context, commands ...string) error
	CallContext(ctx context.Context, command string) error
	Call(ctx context.Context, command string) ([]byte, error)
}

func New

func New() Shell

Jump to

Keyboard shortcuts

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