command

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2013 License: MPL-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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