command

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2013 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOptionFlags

func BuildOptionFlags(fs *flag.FlagSet, f *BuildOptions)

BuildOptionFlags sets the proper command line flags needed for build options.

Types

type AppendSliceValue

type AppendSliceValue []string

AppendSliceValue implements the flag.Value interface and allows multiple calls to the same variable to append a list.

func (*AppendSliceValue) Set

func (s *AppendSliceValue) Set(value string) error

func (*AppendSliceValue) String

func (s *AppendSliceValue) String() string

type BuildOptions

type BuildOptions struct {
	UserVarFiles []string
	UserVars     map[string]string
	Except       []string
	Only         []string
}

BuildOptions is a set of options related to builds that can be set from the command line.

func (*BuildOptions) AllUserVars

func (f *BuildOptions) AllUserVars() (map[string]string, error)

AllUserVars returns the user variables, compiled from both the file paths and the vars on the command line.

func (*BuildOptions) Builds

Builds returns the builds out of the given template that pass the configured options.

func (*BuildOptions) Validate

func (f *BuildOptions) Validate() error

Validate validates the options

type SliceValue

type SliceValue []string

SliceValue implements the flag.Value interface and allows a list of strings to be given on the command line and properly parsed into a slice of strings internally.

func (*SliceValue) Set

func (s *SliceValue) Set(value string) error

func (*SliceValue) String

func (s *SliceValue) String() string

Jump to

Keyboard shortcuts

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