Documentation ¶
Index ¶
- func Output(cmd string, args ...string) (string, error)
- func Quote(s string) string
- func Run(cmd string, args ...string) error
- type CmdBuilder
- func (c *CmdBuilder) Debug() *CmdBuilder
- func (c *CmdBuilder) Dir(dir string) *CmdBuilder
- func (c *CmdBuilder) Env(env []string) *CmdBuilder
- func (c *CmdBuilder) IgnoreError(b ...bool) *CmdBuilder
- func (c *CmdBuilder) Output(cmd string, args ...string) (string, error)
- func (c *CmdBuilder) Run(cmd string, args ...string) error
- func (c *CmdBuilder) Stderr(stderr io.Writer) *CmdBuilder
- func (c *CmdBuilder) Stdout(stdout io.Writer) *CmdBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdBuilder ¶
type CmdBuilder struct {
// contains filtered or unexported fields
}
func Debug ¶ added in v1.0.37
func Debug() *CmdBuilder
func Dir ¶
func Dir(dir string) *CmdBuilder
func Env ¶
func Env(env []string) *CmdBuilder
func IgnoreError ¶ added in v1.0.40
func IgnoreError(b ...bool) *CmdBuilder
func New ¶ added in v1.0.8
func New() *CmdBuilder
func (*CmdBuilder) Debug ¶ added in v1.0.37
func (c *CmdBuilder) Debug() *CmdBuilder
func (*CmdBuilder) Dir ¶
func (c *CmdBuilder) Dir(dir string) *CmdBuilder
func (*CmdBuilder) Env ¶
func (c *CmdBuilder) Env(env []string) *CmdBuilder
func (*CmdBuilder) IgnoreError ¶ added in v1.0.40
func (c *CmdBuilder) IgnoreError(b ...bool) *CmdBuilder
func (*CmdBuilder) Stderr ¶ added in v1.0.8
func (c *CmdBuilder) Stderr(stderr io.Writer) *CmdBuilder
func (*CmdBuilder) Stdout ¶ added in v1.0.8
func (c *CmdBuilder) Stdout(stdout io.Writer) *CmdBuilder
Click to show internal directories.
Click to hide internal directories.