Documentation ¶
Index ¶
- func CommandExists(cmd string) bool
- func LookPath(cmd string) string
- type Cmd
- func (c *Cmd) Run(cmdName string, args ...string) error
- func (c *Cmd) Start(cmdName string, args ...string) (*exec.Cmd, error)
- func (c *Cmd) WithBufout(stdout io.Writer, stderr io.Writer) *Cmd
- func (c *Cmd) WithCwd(cwd string) *Cmd
- func (c *Cmd) WithEnv(envs ...string) *Cmd
- func (c *Cmd) WithStdio() *Cmd
- func (c *Cmd) WithSudo() *Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.