cmdline

package
v0.0.0-...-9d0dce2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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