Documentation ¶ Index ¶ func Command(cmd string, dir string, env []string) (string, error) type CMD func NewCmd(cmd string, env []string) *CMD type Shell func NewShell() *Shell func (l *Shell) Add(cmd string, env []string) *Shell func (l *Shell) Dir(dir string) *Shell func (l *Shell) Env(e []string) *Shell func (l *Shell) Reset() *Shell func (l *Shell) Result() string func (l *Shell) Run() error 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 Source Files ¶ View all Source files cmd.go shell.go Click to show internal directories. Click to hide internal directories.