Documentation ¶
Index ¶
- func AssemblePipes(cmds []*exec.Cmd, stdin io.Reader, stdout io.Writer) []*exec.Cmd
- func BashRun(cmd string) (content string, err error)
- func Run(cmds []*exec.Cmd) (content string, err error)
- func RunCmds(cmds []*exec.Cmd) error
- func RunString(s string) (string, error)
- func RunStrings(tokens ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssemblePipes ¶
AssemblePipes Pipe stdout of each command into stdin of next
func RunString ¶
RunString Convert a shell command with a series of pipes into correspondingly piped list of *exec.Cmd If an arg has spaces, this will fail
func RunStrings ¶
RunStrings Convert sequence of tokens into commands, using "|" as a delimiter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.