Documentation ¶ Index ¶ type Cmdline func New(env map[string]string, args ...string) *Cmdline func (c *Cmdline) Add(env map[string]string, args ...string) *Cmdline func (c *Cmdline) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cmdline ¶ type Cmdline struct { AllowFailure bool // contains filtered or unexported fields } func New ¶ func New(env map[string]string, args ...string) *Cmdline New creates a new Cmdline filled with the given initial arguments func (*Cmdline) Add ¶ func (c *Cmdline) Add(env map[string]string, args ...string) *Cmdline Add creates an environment variable for the given argument and adds that environment variable to the given commandline. If the given argument is short or it contains a '$', it is added directly. func (*Cmdline) String ¶ func (c *Cmdline) String() string Source Files ¶ View all Source files cmdline.go Click to show internal directories. Click to hide internal directories.