Documentation ¶
Index ¶
- func IsShellSafe(str string) bool
- func ShellEscape(strs ...string) string
- func ShellEscapeWord(str string) string
- type Cmd
- func (c *Cmd) Output() ([]byte, error)
- func (c *Cmd) OutputLines() ([]string, error)
- func (c *Cmd) OutputString() (string, error)
- func (c *Cmd) ReadFrom(r io.Reader) *Cmd
- func (c *Cmd) Run() error
- func (c *Cmd) Start() error
- func (c *Cmd) StderrPipe() (io.ReadCloser, error)
- func (c *Cmd) StdinPipe() (io.WriteCloser, error)
- func (c *Cmd) StdoutPipe() (io.ReadCloser, error)
- func (c *Cmd) String() string
- func (c *Cmd) Wait() error
- func (c *Cmd) WriteTo(w io.Writer) *Cmd
- type CmdError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShellEscape ¶
func ShellEscapeWord ¶
Types ¶
type Cmd ¶
func (*Cmd) OutputLines ¶
func (*Cmd) OutputString ¶
func (*Cmd) StderrPipe ¶
func (c *Cmd) StderrPipe() (io.ReadCloser, error)
func (*Cmd) StdoutPipe ¶
func (c *Cmd) StdoutPipe() (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.