Documentation
¶
Overview ¶
Package exec runs external commands. It wraps os.exec to allow using full command string as arguments, and provides functions of providing (stdin, stdout, stderr) channel for (stdin, stdout, stderr) pipe.
Attention, this package is experimental.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
func Command ¶
Command returns the Cmd struct to execute the command. No need to split the path and arguments. The error may be caused by unclosed quote.
func (*Cmd) StderrChannel ¶
StderrChannel returns a channel that will be connected to the command's standard error when the command starts. It closes when StderrPipe closed.
func (*Cmd) StdinChannel ¶
StdinChannel returns a channel that will be connected to the command's standard error when the command starts.
func (*Cmd) StdoutChannel ¶
StdoutChannel returns a channel that will be connected to the command's standard error when the command starts. It closes when StdoutPipe closed.