cmd

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2014 License: MIT Imports: 6 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Name string
	Args []string
}

func New

func New(cmd string) *Cmd

func NewWithArray

func NewWithArray(cmd []string) *Cmd

func (*Cmd) Exec

func (cmd *Cmd) Exec() error

func (*Cmd) ExecOutput

func (cmd *Cmd) ExecOutput() (string, error)

func (Cmd) String

func (cmd Cmd) String() string

func (*Cmd) WithArg

func (cmd *Cmd) WithArg(arg string) *Cmd

func (*Cmd) WithArgs

func (cmd *Cmd) WithArgs(args ...string) *Cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL