Versions in this module Expand all Collapse all v1 v1.0.1 Oct 25, 2025 v1.0.0 Oct 25, 2025 Changes in this version + type Command struct + func NewCommand(cmd string) *Command + func (s *Command) AfterExec(f func(command *Command, cmd *exec.Cmd, err error)) *Command + func (s *Command) AfterExited(f func(command *Command, cmd *exec.Cmd, err error)) *Command + func (s *Command) Args(args ...string) *Command + func (s *Command) Async(async bool) *Command + func (s *Command) AsyncCallback(asyncCallback func(cmd *Command, output string, err error)) *Command + func (s *Command) BeforeExec(f func(command *Command, cmd *exec.Cmd)) *Command + func (s *Command) Cmd() *exec.Cmd + func (s *Command) Detach(detach bool) *Command + func (s *Command) Env(env map[string]string) *Command + func (s *Command) Exec() (output string, e error) + func (s *Command) ExecAsync() (e error) + func (s *Command) Kill() + func (s *Command) Log(log gcore.Logger) *Command + func (s *Command) Output(w io.Writer) *Command + func (s *Command) StrictMode(strictMode bool) *Command + func (s *Command) TermType(termType TermType) *Command + func (s *Command) Timeout(timeout time.Duration) *Command + func (s *Command) WorkDir(workDir string) *Command + type TermType string + const TermAnsi + const TermGnome + const TermKonsole + const TermNull + const TermRxvt + const TermScreen + const TermTmux + const TermVt100 + const TermXterm + const TermXterm256Color