Documentation
¶
Index ¶
- Variables
- func PidOf(name string) (res []int)
- func Reap() error
- func Run(arg ...string) error
- func RunGet(arg ...string) ([]byte, error)
- func RunJson(obj interface{}, arg ...string) error
- func RunWrite(r io.Reader, arg ...string) error
- func Sh(cmd string) error
- func ShQuote(s string) string
- type Pipe
- type ProcState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCommandMissing = errors.New("command is missing") ErrNotSupported = errors.New("operation not supported on this platform") )
Functions ¶
func Run ¶
Run is a very simple invokation of command run, with output forwarded to stdout. This will wait for the command to complete.
func RunJson ¶
RunJson executes the command and applies its output to the specified object, parsing json data
Types ¶
Click to show internal directories.
Click to hide internal directories.