flags

package
v0.10.22 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsDef added in v0.10.22

type ArgsDef struct {
	// contains filtered or unexported fields
}

type Extension

type Extension struct {
	// contains filtered or unexported fields
}

func NewExtension

func NewExtension(args []string) *Extension

func (*Extension) NewState

func (e *Extension) NewState() interface{}

func (*Extension) OnStart

func (e *Extension) OnStart(env *starkit.Environment) error

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func GetState

func GetState(m starkit.Model) (Settings, error)

func MustState

func MustState(model starkit.Model) Settings

func (Settings) Resources

func (s Settings) Resources(args []string, manifests []model.Manifest) ([]model.Manifest, error)

for the given args and list of full manifests, figure out which manifests the user actually selected

type Strings added in v0.10.22

type Strings struct {
	Values []string
}

Strings is a `flag.Value` for `string` arguments. (from https://github.com/sgreben/flagvar/blob/master/string.go)

func (*Strings) Set added in v0.10.22

func (fv *Strings) Set(v string) error

Set is flag.Value.Set

func (*Strings) String added in v0.10.22

func (fv *Strings) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳