Documentation ¶
Overview ¶
Some execution facilities, because Gate relies a lot on process spawning
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(prepare func(cmd *Cmd) error, run func(cmd *Cmd) error, command string, arguments ...string) (err error)
Spawn a given command.
- prepare() is called after the command creation but before actually starting it
- run() is called while the command is running and before waiting for its completion
Types ¶
type Cmd ¶
func (*Cmd) StderrPipe ¶
func (self *Cmd) StderrPipe() (io.ReadCloser, error)
A pipe to the command's stderr
func (*Cmd) StdinPipe ¶
func (self *Cmd) StdinPipe() (io.WriteCloser, error)
A pipe to the command's stdin
func (*Cmd) StdoutPipe ¶
func (self *Cmd) StdoutPipe() (io.ReadCloser, error)
A pipe to the command's stdout
Click to show internal directories.
Click to hide internal directories.