shell

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cmd string, dir string, env []string) (string, error)

Types

type CMD

type CMD struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(cmd string, env []string) *CMD

type Shell

type Shell struct {
	Out chan string

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewShell

func NewShell() *Shell

func (*Shell) Add

func (l *Shell) Add(cmd string, env []string) *Shell

func (*Shell) Dir

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

func (*Shell) Env

func (l *Shell) Env(e []string) *Shell

func (*Shell) Reset

func (l *Shell) Reset() *Shell

func (*Shell) Result

func (l *Shell) Result() string

func (*Shell) Run

func (l *Shell) Run() error

Jump to

Keyboard shortcuts

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