figtree

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

Build Status GoDoc

Figtree is a go library to recusively parse and merge yaml based config files.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StringifyValue = true

Functions

func FindParentPaths

func FindParentPaths(homedir, cwd, fileName string) []string

func MakeMergeStruct

func MakeMergeStruct(structs ...interface{}) interface{}

MakeMergeStruct will take multiple structs and return a pointer to a zero value for the anonymous struct that has all the public fields from all the structs merged into one struct. If there are multiple structs with the same field names, the first appearance of that name will be used.

func Merge

func Merge(dst, src interface{})

Merge will attempt to merge the data from src into dst. They shoud be either both maps or both structs. The structs do not need to have the same structure, but any field name that exists in both structs will must be the same type.

Types

type BoolOption

type BoolOption struct {
	Source  string
	Defined bool
	Value   bool
}

func NewBoolOption

func NewBoolOption(dflt bool) BoolOption

func (*BoolOption) GetSource

func (o *BoolOption) GetSource() string

func (BoolOption) GetValue

func (o BoolOption) GetValue() interface{}

func (BoolOption) IsBoolFlag

func (b BoolOption) IsBoolFlag() bool

IsBoolFlag is required by kingpin interface to determine if this variable requires a value

func (BoolOption) IsDefined

func (o BoolOption) IsDefined() bool

func (BoolOption) MarshalJSON

func (o BoolOption) MarshalJSON() ([]byte, error)

func (BoolOption) MarshalYAML

func (o BoolOption) MarshalYAML() (interface{}, error)

func (*BoolOption) Set

func (o *BoolOption) Set(s string) error

This is useful with kingpin option parser

func (*BoolOption) SetSource

func (o *BoolOption) SetSource(source string)

func (*BoolOption) SetValue

func (o *BoolOption) SetValue(v interface{}) error

func (BoolOption) String

func (o BoolOption) String() string

String is required for kingpin to generate usage with this datatype

func (*BoolOption) UnmarshalJSON

func (o *BoolOption) UnmarshalJSON(b []byte) error

func (*BoolOption) UnmarshalYAML

func (o *BoolOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*BoolOption) WriteAnswer

func (o *BoolOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ByteOption

type ByteOption struct {
	Source  string
	Defined bool
	Value   byte
}

func NewByteOption

func NewByteOption(dflt byte) ByteOption

func (*ByteOption) GetSource

func (o *ByteOption) GetSource() string

func (ByteOption) GetValue

func (o ByteOption) GetValue() interface{}

func (ByteOption) IsDefined

func (o ByteOption) IsDefined() bool

func (ByteOption) MarshalJSON

func (o ByteOption) MarshalJSON() ([]byte, error)

func (ByteOption) MarshalYAML

func (o ByteOption) MarshalYAML() (interface{}, error)

func (*ByteOption) Set

func (o *ByteOption) Set(s string) error

This is useful with kingpin option parser

func (*ByteOption) SetSource

func (o *ByteOption) SetSource(source string)

func (*ByteOption) SetValue

func (o *ByteOption) SetValue(v interface{}) error

func (ByteOption) String

func (o ByteOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ByteOption) UnmarshalJSON

func (o *ByteOption) UnmarshalJSON(b []byte) error

func (*ByteOption) UnmarshalYAML

func (o *ByteOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*ByteOption) WriteAnswer

func (o *ByteOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ChangeSetFunc added in v1.0.1

type ChangeSetFunc func(map[string]*string) error

type Complex128Option

type Complex128Option struct {
	Source  string
	Defined bool
	Value   complex128
}

func NewComplex128Option

func NewComplex128Option(dflt complex128) Complex128Option

func (*Complex128Option) GetSource

func (o *Complex128Option) GetSource() string

func (Complex128Option) GetValue

func (o Complex128Option) GetValue() interface{}

func (Complex128Option) IsDefined

func (o Complex128Option) IsDefined() bool

func (Complex128Option) MarshalJSON

func (o Complex128Option) MarshalJSON() ([]byte, error)

func (Complex128Option) MarshalYAML

func (o Complex128Option) MarshalYAML() (interface{}, error)

func (*Complex128Option) Set

func (o *Complex128Option) Set(s string) error

This is useful with kingpin option parser

func (*Complex128Option) SetSource

func (o *Complex128Option) SetSource(source string)

func (*Complex128Option) SetValue

func (o *Complex128Option) SetValue(v interface{}) error

func (Complex128Option) String

func (o Complex128Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Complex128Option) UnmarshalJSON

func (o *Complex128Option) UnmarshalJSON(b []byte) error

func (*Complex128Option) UnmarshalYAML

func (o *Complex128Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Complex128Option) WriteAnswer

func (o *Complex128Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Complex64Option

type Complex64Option struct {
	Source  string
	Defined bool
	Value   complex64
}

func NewComplex64Option

func NewComplex64Option(dflt complex64) Complex64Option

func (*Complex64Option) GetSource

func (o *Complex64Option) GetSource() string

func (Complex64Option) GetValue

func (o Complex64Option) GetValue() interface{}

func (Complex64Option) IsDefined

func (o Complex64Option) IsDefined() bool

func (Complex64Option) MarshalJSON

func (o Complex64Option) MarshalJSON() ([]byte, error)

func (Complex64Option) MarshalYAML

func (o Complex64Option) MarshalYAML() (interface{}, error)

func (*Complex64Option) Set

func (o *Complex64Option) Set(s string) error

This is useful with kingpin option parser

func (*Complex64Option) SetSource

func (o *Complex64Option) SetSource(source string)

func (*Complex64Option) SetValue

func (o *Complex64Option) SetValue(v interface{}) error

func (Complex64Option) String

func (o Complex64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Complex64Option) UnmarshalJSON

func (o *Complex64Option) UnmarshalJSON(b []byte) error

func (*Complex64Option) UnmarshalYAML

func (o *Complex64Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Complex64Option) WriteAnswer

func (o *Complex64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ConfigOptions

type ConfigOptions struct {
	Overwrite []string `json:"overwrite,omitempty" yaml:"overwrite,omitempty"`
}

type ConfigSource added in v1.0.1

type ConfigSource struct {
	Config   []byte
	Filename string
}

type ErrorOption

type ErrorOption struct {
	Source  string
	Defined bool
	Value   error
}

func NewErrorOption

func NewErrorOption(dflt error) ErrorOption

func (*ErrorOption) GetSource

func (o *ErrorOption) GetSource() string

func (ErrorOption) GetValue

func (o ErrorOption) GetValue() interface{}

func (ErrorOption) IsDefined

func (o ErrorOption) IsDefined() bool

func (ErrorOption) MarshalJSON

func (o ErrorOption) MarshalJSON() ([]byte, error)

func (ErrorOption) MarshalYAML

func (o ErrorOption) MarshalYAML() (interface{}, error)

func (*ErrorOption) Set

func (o *ErrorOption) Set(s string) error

This is useful with kingpin option parser

func (*ErrorOption) SetSource

func (o *ErrorOption) SetSource(source string)

func (*ErrorOption) SetValue

func (o *ErrorOption) SetValue(v interface{}) error

func (ErrorOption) String

func (o ErrorOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ErrorOption) UnmarshalJSON

func (o *ErrorOption) UnmarshalJSON(b []byte) error

func (*ErrorOption) UnmarshalYAML

func (o *ErrorOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*ErrorOption) WriteAnswer

func (o *ErrorOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type FigTree

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

func NewFigTree

func NewFigTree(opts ...Option) *FigTree

func (*FigTree) Copy added in v1.0.1

func (f *FigTree) Copy() *FigTree

func (*FigTree) FindParentPaths added in v1.0.1

func (f *FigTree) FindParentPaths(fileName string) []string

func (*FigTree) LoadAllConfigSources added in v1.0.1

func (f *FigTree) LoadAllConfigSources(sources []ConfigSource, options interface{}) error

func (*FigTree) LoadAllConfigs

func (f *FigTree) LoadAllConfigs(configFile string, options interface{}) error

func (*FigTree) LoadConfig

func (f *FigTree) LoadConfig(file string, options interface{}) error

func (*FigTree) LoadConfigBytes

func (f *FigTree) LoadConfigBytes(config []byte, source string, options interface{}) error

func (*FigTree) PopulateEnv

func (f *FigTree) PopulateEnv(data interface{}) (changeSet map[string]*string)

func (*FigTree) ReadFile added in v1.0.1

func (f *FigTree) ReadFile(file string) (*ConfigSource, error)

ReadFile will return a ConfigSource for given file path. If the file is executable (and WithoutExec was not used), it will execute the file and return the stdout otherwise it will return the file contents directly.

func (*FigTree) WithApplyChangeSet added in v1.0.1

func (f *FigTree) WithApplyChangeSet(apply ChangeSetFunc)

func (*FigTree) WithConfigDir added in v1.0.1

func (f *FigTree) WithConfigDir(dir string)

func (*FigTree) WithCwd added in v1.0.1

func (f *FigTree) WithCwd(cwd string)

func (*FigTree) WithEnvPrefix added in v1.0.1

func (f *FigTree) WithEnvPrefix(env string)

func (*FigTree) WithFilterOut added in v1.0.1

func (f *FigTree) WithFilterOut(filt FilterOut)

func (*FigTree) WithHome added in v1.0.1

func (f *FigTree) WithHome(home string)

func (*FigTree) WithIgnoreChangeSet added in v1.0.1

func (f *FigTree) WithIgnoreChangeSet()

func (*FigTree) WithPreProcessor added in v1.0.1

func (f *FigTree) WithPreProcessor(pp PreProcessor)

func (*FigTree) WithUnmarshaller added in v1.0.1

func (f *FigTree) WithUnmarshaller(unmarshaller func(in []byte, out interface{}) error)

func (*FigTree) WithoutExec added in v1.0.1

func (f *FigTree) WithoutExec()

type FilterOut added in v1.0.1

type FilterOut func([]byte) bool

type Float32Option

type Float32Option struct {
	Source  string
	Defined bool
	Value   float32
}

func NewFloat32Option

func NewFloat32Option(dflt float32) Float32Option

func (*Float32Option) GetSource

func (o *Float32Option) GetSource() string

func (Float32Option) GetValue

func (o Float32Option) GetValue() interface{}

func (Float32Option) IsDefined

func (o Float32Option) IsDefined() bool

func (Float32Option) MarshalJSON

func (o Float32Option) MarshalJSON() ([]byte, error)

func (Float32Option) MarshalYAML

func (o Float32Option) MarshalYAML() (interface{}, error)

func (*Float32Option) Set

func (o *Float32Option) Set(s string) error

This is useful with kingpin option parser

func (*Float32Option) SetSource

func (o *Float32Option) SetSource(source string)

func (*Float32Option) SetValue

func (o *Float32Option) SetValue(v interface{}) error

func (Float32Option) String

func (o Float32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Float32Option) UnmarshalJSON

func (o *Float32Option) UnmarshalJSON(b []byte) error

func (*Float32Option) UnmarshalYAML

func (o *Float32Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Float32Option) WriteAnswer

func (o *Float32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Float64Option

type Float64Option struct {
	Source  string
	Defined bool
	Value   float64
}

func NewFloat64Option

func NewFloat64Option(dflt float64) Float64Option

func (*Float64Option) GetSource

func (o *Float64Option) GetSource() string

func (Float64Option) GetValue

func (o Float64Option) GetValue() interface{}

func (Float64Option) IsDefined

func (o Float64Option) IsDefined() bool

func (Float64Option) MarshalJSON

func (o Float64Option) MarshalJSON() ([]byte, error)

func (Float64Option) MarshalYAML

func (o Float64Option) MarshalYAML() (interface{}, error)

func (*Float64Option) Set

func (o *Float64Option) Set(s string) error

This is useful with kingpin option parser

func (*Float64Option) SetSource

func (o *Float64Option) SetSource(source string)

func (*Float64Option) SetValue

func (o *Float64Option) SetValue(v interface{}) error

func (Float64Option) String

func (o Float64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Float64Option) UnmarshalJSON

func (o *Float64Option) UnmarshalJSON(b []byte) error

func (*Float64Option) UnmarshalYAML

func (o *Float64Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Float64Option) WriteAnswer

func (o *Float64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Int16Option

type Int16Option struct {
	Source  string
	Defined bool
	Value   int16
}

func NewInt16Option

func NewInt16Option(dflt int16) Int16Option

func (*Int16Option) GetSource

func (o *Int16Option) GetSource() string

func (Int16Option) GetValue

func (o Int16Option) GetValue() interface{}

func (Int16Option) IsDefined

func (o Int16Option) IsDefined() bool

func (Int16Option) MarshalJSON

func (o Int16Option) MarshalJSON() ([]byte, error)

func (Int16Option) MarshalYAML

func (o Int16Option) MarshalYAML() (interface{}, error)

func (*Int16Option) Set

func (o *Int16Option) Set(s string) error

This is useful with kingpin option parser

func (*Int16Option) SetSource

func (o *Int16Option) SetSource(source string)

func (*Int16Option) SetValue

func (o *Int16Option) SetValue(v interface{}) error

func (Int16Option) String

func (o Int16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Int16Option) UnmarshalJSON

func (o *Int16Option) UnmarshalJSON(b []byte) error

func (*Int16Option) UnmarshalYAML

func (o *Int16Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Int16Option) WriteAnswer

func (o *Int16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Int32Option

type Int32Option struct {
	Source  string
	Defined bool
	Value   int32
}

func NewInt32Option

func NewInt32Option(dflt int32) Int32Option

func (*Int32Option) GetSource

func (o *Int32Option) GetSource() string

func (Int32Option) GetValue

func (o Int32Option) GetValue() interface{}

func (Int32Option) IsDefined

func (o Int32Option) IsDefined() bool

func (Int32Option) MarshalJSON

func (o Int32Option) MarshalJSON() ([]byte, error)

func (Int32Option) MarshalYAML

func (o Int32Option) MarshalYAML() (interface{}, error)

func (*Int32Option) Set

func (o *Int32Option) Set(s string) error

This is useful with kingpin option parser

func (*Int32Option) SetSource

func (o *Int32Option) SetSource(source string)

func (*Int32Option) SetValue

func (o *Int32Option) SetValue(v interface{}) error

func (Int32Option) String

func (o Int32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Int32Option) UnmarshalJSON

func (o *Int32Option) UnmarshalJSON(b []byte) error

func (*Int32Option) UnmarshalYAML

func (o *Int32Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Int32Option) WriteAnswer

func (o *Int32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Int64Option

type Int64Option struct {
	Source  string
	Defined bool
	Value   int64
}

func NewInt64Option

func NewInt64Option(dflt int64) Int64Option

func (*Int64Option) GetSource

func (o *Int64Option) GetSource() string

func (Int64Option) GetValue

func (o Int64Option) GetValue() interface{}

func (Int64Option) IsDefined

func (o Int64Option) IsDefined() bool

func (Int64Option) MarshalJSON

func (o Int64Option) MarshalJSON() ([]byte, error)

func (Int64Option) MarshalYAML

func (o Int64Option) MarshalYAML() (interface{}, error)

func (*Int64Option) Set

func (o *Int64Option) Set(s string) error

This is useful with kingpin option parser

func (*Int64Option) SetSource

func (o *Int64Option) SetSource(source string)

func (*Int64Option) SetValue

func (o *Int64Option) SetValue(v interface{}) error

func (Int64Option) String

func (o Int64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Int64Option) UnmarshalJSON

func (o *Int64Option) UnmarshalJSON(b []byte) error

func (*Int64Option) UnmarshalYAML

func (o *Int64Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Int64Option) WriteAnswer

func (o *Int64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Int8Option

type Int8Option struct {
	Source  string
	Defined bool
	Value   int8
}

func NewInt8Option

func NewInt8Option(dflt int8) Int8Option

func (*Int8Option) GetSource

func (o *Int8Option) GetSource() string

func (Int8Option) GetValue

func (o Int8Option) GetValue() interface{}

func (Int8Option) IsDefined

func (o Int8Option) IsDefined() bool

func (Int8Option) MarshalJSON

func (o Int8Option) MarshalJSON() ([]byte, error)

func (Int8Option) MarshalYAML

func (o Int8Option) MarshalYAML() (interface{}, error)

func (*Int8Option) Set

func (o *Int8Option) Set(s string) error

This is useful with kingpin option parser

func (*Int8Option) SetSource

func (o *Int8Option) SetSource(source string)

func (*Int8Option) SetValue

func (o *Int8Option) SetValue(v interface{}) error

func (Int8Option) String

func (o Int8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Int8Option) UnmarshalJSON

func (o *Int8Option) UnmarshalJSON(b []byte) error

func (*Int8Option) UnmarshalYAML

func (o *Int8Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Int8Option) WriteAnswer

func (o *Int8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type IntOption

type IntOption struct {
	Source  string
	Defined bool
	Value   int
}

func NewIntOption

func NewIntOption(dflt int) IntOption

func (*IntOption) GetSource

func (o *IntOption) GetSource() string

func (IntOption) GetValue

func (o IntOption) GetValue() interface{}

func (IntOption) IsDefined

func (o IntOption) IsDefined() bool

func (IntOption) MarshalJSON

func (o IntOption) MarshalJSON() ([]byte, error)

func (IntOption) MarshalYAML

func (o IntOption) MarshalYAML() (interface{}, error)

func (*IntOption) Set

func (o *IntOption) Set(s string) error

This is useful with kingpin option parser

func (*IntOption) SetSource

func (o *IntOption) SetSource(source string)

func (*IntOption) SetValue

func (o *IntOption) SetValue(v interface{}) error

func (IntOption) String

func (o IntOption) String() string

String is required for kingpin to generate usage with this datatype

func (*IntOption) UnmarshalJSON

func (o *IntOption) UnmarshalJSON(b []byte) error

func (*IntOption) UnmarshalYAML

func (o *IntOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*IntOption) WriteAnswer

func (o *IntOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListBoolOption

type ListBoolOption []BoolOption

func (ListBoolOption) Append

func (o ListBoolOption) Append(values ...bool) ListBoolOption

func (ListBoolOption) IsCumulative

func (o ListBoolOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListBoolOption) IsDefined

func (o ListBoolOption) IsDefined() bool

func (*ListBoolOption) Set

func (o *ListBoolOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListBoolOption) Slice

func (o ListBoolOption) Slice() []bool

func (ListBoolOption) String

func (o ListBoolOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListBoolOption) WriteAnswer

func (o *ListBoolOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListByteOption

type ListByteOption []ByteOption

func (ListByteOption) Append

func (o ListByteOption) Append(values ...byte) ListByteOption

func (ListByteOption) IsCumulative

func (o ListByteOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListByteOption) IsDefined

func (o ListByteOption) IsDefined() bool

func (*ListByteOption) Set

func (o *ListByteOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListByteOption) Slice

func (o ListByteOption) Slice() []byte

func (ListByteOption) String

func (o ListByteOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListByteOption) WriteAnswer

func (o *ListByteOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListComplex128Option

type ListComplex128Option []Complex128Option

func (ListComplex128Option) Append

func (ListComplex128Option) IsCumulative

func (o ListComplex128Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListComplex128Option) IsDefined

func (o ListComplex128Option) IsDefined() bool

func (*ListComplex128Option) Set

func (o *ListComplex128Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListComplex128Option) Slice

func (o ListComplex128Option) Slice() []complex128

func (ListComplex128Option) String

func (o ListComplex128Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListComplex128Option) WriteAnswer

func (o *ListComplex128Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListComplex64Option

type ListComplex64Option []Complex64Option

func (ListComplex64Option) Append

func (ListComplex64Option) IsCumulative

func (o ListComplex64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListComplex64Option) IsDefined

func (o ListComplex64Option) IsDefined() bool

func (*ListComplex64Option) Set

func (o *ListComplex64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListComplex64Option) Slice

func (o ListComplex64Option) Slice() []complex64

func (ListComplex64Option) String

func (o ListComplex64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListComplex64Option) WriteAnswer

func (o *ListComplex64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListErrorOption

type ListErrorOption []ErrorOption

func (ListErrorOption) Append

func (o ListErrorOption) Append(values ...error) ListErrorOption

func (ListErrorOption) IsCumulative

func (o ListErrorOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListErrorOption) IsDefined

func (o ListErrorOption) IsDefined() bool

func (*ListErrorOption) Set

func (o *ListErrorOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListErrorOption) Slice

func (o ListErrorOption) Slice() []error

func (ListErrorOption) String

func (o ListErrorOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListErrorOption) WriteAnswer

func (o *ListErrorOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListFloat32Option

type ListFloat32Option []Float32Option

func (ListFloat32Option) Append

func (o ListFloat32Option) Append(values ...float32) ListFloat32Option

func (ListFloat32Option) IsCumulative

func (o ListFloat32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListFloat32Option) IsDefined

func (o ListFloat32Option) IsDefined() bool

func (*ListFloat32Option) Set

func (o *ListFloat32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListFloat32Option) Slice

func (o ListFloat32Option) Slice() []float32

func (ListFloat32Option) String

func (o ListFloat32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListFloat32Option) WriteAnswer

func (o *ListFloat32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListFloat64Option

type ListFloat64Option []Float64Option

func (ListFloat64Option) Append

func (o ListFloat64Option) Append(values ...float64) ListFloat64Option

func (ListFloat64Option) IsCumulative

func (o ListFloat64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListFloat64Option) IsDefined

func (o ListFloat64Option) IsDefined() bool

func (*ListFloat64Option) Set

func (o *ListFloat64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListFloat64Option) Slice

func (o ListFloat64Option) Slice() []float64

func (ListFloat64Option) String

func (o ListFloat64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListFloat64Option) WriteAnswer

func (o *ListFloat64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListInt16Option

type ListInt16Option []Int16Option

func (ListInt16Option) Append

func (o ListInt16Option) Append(values ...int16) ListInt16Option

func (ListInt16Option) IsCumulative

func (o ListInt16Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListInt16Option) IsDefined

func (o ListInt16Option) IsDefined() bool

func (*ListInt16Option) Set

func (o *ListInt16Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListInt16Option) Slice

func (o ListInt16Option) Slice() []int16

func (ListInt16Option) String

func (o ListInt16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListInt16Option) WriteAnswer

func (o *ListInt16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListInt32Option

type ListInt32Option []Int32Option

func (ListInt32Option) Append

func (o ListInt32Option) Append(values ...int32) ListInt32Option

func (ListInt32Option) IsCumulative

func (o ListInt32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListInt32Option) IsDefined

func (o ListInt32Option) IsDefined() bool

func (*ListInt32Option) Set

func (o *ListInt32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListInt32Option) Slice

func (o ListInt32Option) Slice() []int32

func (ListInt32Option) String

func (o ListInt32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListInt32Option) WriteAnswer

func (o *ListInt32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListInt64Option

type ListInt64Option []Int64Option

func (ListInt64Option) Append

func (o ListInt64Option) Append(values ...int64) ListInt64Option

func (ListInt64Option) IsCumulative

func (o ListInt64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListInt64Option) IsDefined

func (o ListInt64Option) IsDefined() bool

func (*ListInt64Option) Set

func (o *ListInt64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListInt64Option) Slice

func (o ListInt64Option) Slice() []int64

func (ListInt64Option) String

func (o ListInt64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListInt64Option) WriteAnswer

func (o *ListInt64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListInt8Option

type ListInt8Option []Int8Option

func (ListInt8Option) Append

func (o ListInt8Option) Append(values ...int8) ListInt8Option

func (ListInt8Option) IsCumulative

func (o ListInt8Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListInt8Option) IsDefined

func (o ListInt8Option) IsDefined() bool

func (*ListInt8Option) Set

func (o *ListInt8Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListInt8Option) Slice

func (o ListInt8Option) Slice() []int8

func (ListInt8Option) String

func (o ListInt8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListInt8Option) WriteAnswer

func (o *ListInt8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListIntOption

type ListIntOption []IntOption

func (ListIntOption) Append

func (o ListIntOption) Append(values ...int) ListIntOption

func (ListIntOption) IsCumulative

func (o ListIntOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListIntOption) IsDefined

func (o ListIntOption) IsDefined() bool

func (*ListIntOption) Set

func (o *ListIntOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListIntOption) Slice

func (o ListIntOption) Slice() []int

func (ListIntOption) String

func (o ListIntOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListIntOption) WriteAnswer

func (o *ListIntOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListRawTypeOption

type ListRawTypeOption []RawTypeOption

func (ListRawTypeOption) Append

func (o ListRawTypeOption) Append(values ...RawType) ListRawTypeOption

func (ListRawTypeOption) IsCumulative

func (o ListRawTypeOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListRawTypeOption) IsDefined

func (o ListRawTypeOption) IsDefined() bool

func (*ListRawTypeOption) Set

func (o *ListRawTypeOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListRawTypeOption) Slice

func (o ListRawTypeOption) Slice() []RawType

func (ListRawTypeOption) String

func (o ListRawTypeOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListRawTypeOption) WriteAnswer

func (o *ListRawTypeOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListRuneOption

type ListRuneOption []RuneOption

func (ListRuneOption) Append

func (o ListRuneOption) Append(values ...rune) ListRuneOption

func (ListRuneOption) IsCumulative

func (o ListRuneOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListRuneOption) IsDefined

func (o ListRuneOption) IsDefined() bool

func (*ListRuneOption) Set

func (o *ListRuneOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListRuneOption) Slice

func (o ListRuneOption) Slice() []rune

func (ListRuneOption) String

func (o ListRuneOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListRuneOption) WriteAnswer

func (o *ListRuneOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListStringOption

type ListStringOption []StringOption

func (ListStringOption) Append

func (o ListStringOption) Append(values ...string) ListStringOption

func (ListStringOption) IsCumulative

func (o ListStringOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListStringOption) IsDefined

func (o ListStringOption) IsDefined() bool

func (*ListStringOption) Set

func (o *ListStringOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListStringOption) Slice

func (o ListStringOption) Slice() []string

func (ListStringOption) String

func (o ListStringOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListStringOption) WriteAnswer

func (o *ListStringOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUint16Option

type ListUint16Option []Uint16Option

func (ListUint16Option) Append

func (o ListUint16Option) Append(values ...uint16) ListUint16Option

func (ListUint16Option) IsCumulative

func (o ListUint16Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUint16Option) IsDefined

func (o ListUint16Option) IsDefined() bool

func (*ListUint16Option) Set

func (o *ListUint16Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUint16Option) Slice

func (o ListUint16Option) Slice() []uint16

func (ListUint16Option) String

func (o ListUint16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUint16Option) WriteAnswer

func (o *ListUint16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUint32Option

type ListUint32Option []Uint32Option

func (ListUint32Option) Append

func (o ListUint32Option) Append(values ...uint32) ListUint32Option

func (ListUint32Option) IsCumulative

func (o ListUint32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUint32Option) IsDefined

func (o ListUint32Option) IsDefined() bool

func (*ListUint32Option) Set

func (o *ListUint32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUint32Option) Slice

func (o ListUint32Option) Slice() []uint32

func (ListUint32Option) String

func (o ListUint32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUint32Option) WriteAnswer

func (o *ListUint32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUint64Option

type ListUint64Option []Uint64Option

func (ListUint64Option) Append

func (o ListUint64Option) Append(values ...uint64) ListUint64Option

func (ListUint64Option) IsCumulative

func (o ListUint64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUint64Option) IsDefined

func (o ListUint64Option) IsDefined() bool

func (*ListUint64Option) Set

func (o *ListUint64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUint64Option) Slice

func (o ListUint64Option) Slice() []uint64

func (ListUint64Option) String

func (o ListUint64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUint64Option) WriteAnswer

func (o *ListUint64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUint8Option

type ListUint8Option []Uint8Option

func (ListUint8Option) Append

func (o ListUint8Option) Append(values ...uint8) ListUint8Option

func (ListUint8Option) IsCumulative

func (o ListUint8Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUint8Option) IsDefined

func (o ListUint8Option) IsDefined() bool

func (*ListUint8Option) Set

func (o *ListUint8Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUint8Option) Slice

func (o ListUint8Option) Slice() []uint8

func (ListUint8Option) String

func (o ListUint8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUint8Option) WriteAnswer

func (o *ListUint8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUintOption

type ListUintOption []UintOption

func (ListUintOption) Append

func (o ListUintOption) Append(values ...uint) ListUintOption

func (ListUintOption) IsCumulative

func (o ListUintOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUintOption) IsDefined

func (o ListUintOption) IsDefined() bool

func (*ListUintOption) Set

func (o *ListUintOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUintOption) Slice

func (o ListUintOption) Slice() []uint

func (ListUintOption) String

func (o ListUintOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUintOption) WriteAnswer

func (o *ListUintOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type ListUintptrOption

type ListUintptrOption []UintptrOption

func (ListUintptrOption) Append

func (o ListUintptrOption) Append(values ...uintptr) ListUintptrOption

func (ListUintptrOption) IsCumulative

func (o ListUintptrOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (ListUintptrOption) IsDefined

func (o ListUintptrOption) IsDefined() bool

func (*ListUintptrOption) Set

func (o *ListUintptrOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (ListUintptrOption) Slice

func (o ListUintptrOption) Slice() []uintptr

func (ListUintptrOption) String

func (o ListUintptrOption) String() string

String is required for kingpin to generate usage with this datatype

func (*ListUintptrOption) WriteAnswer

func (o *ListUintptrOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
}
var Log Logger = &nullLogger{}

type MapBoolOption

type MapBoolOption map[string]BoolOption

func (MapBoolOption) IsCumulative

func (o MapBoolOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapBoolOption) IsDefined

func (o MapBoolOption) IsDefined() bool

func (MapBoolOption) Map

func (o MapBoolOption) Map() map[string]bool

func (*MapBoolOption) Set

func (o *MapBoolOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapBoolOption) String

func (o MapBoolOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapBoolOption) WriteAnswer

func (o *MapBoolOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapByteOption

type MapByteOption map[string]ByteOption

func (MapByteOption) IsCumulative

func (o MapByteOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapByteOption) IsDefined

func (o MapByteOption) IsDefined() bool

func (MapByteOption) Map

func (o MapByteOption) Map() map[string]byte

func (*MapByteOption) Set

func (o *MapByteOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapByteOption) String

func (o MapByteOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapByteOption) WriteAnswer

func (o *MapByteOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapComplex128Option

type MapComplex128Option map[string]Complex128Option

func (MapComplex128Option) IsCumulative

func (o MapComplex128Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapComplex128Option) IsDefined

func (o MapComplex128Option) IsDefined() bool

func (MapComplex128Option) Map

func (*MapComplex128Option) Set

func (o *MapComplex128Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapComplex128Option) String

func (o MapComplex128Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapComplex128Option) WriteAnswer

func (o *MapComplex128Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapComplex64Option

type MapComplex64Option map[string]Complex64Option

func (MapComplex64Option) IsCumulative

func (o MapComplex64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapComplex64Option) IsDefined

func (o MapComplex64Option) IsDefined() bool

func (MapComplex64Option) Map

func (o MapComplex64Option) Map() map[string]complex64

func (*MapComplex64Option) Set

func (o *MapComplex64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapComplex64Option) String

func (o MapComplex64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapComplex64Option) WriteAnswer

func (o *MapComplex64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapErrorOption

type MapErrorOption map[string]ErrorOption

func (MapErrorOption) IsCumulative

func (o MapErrorOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapErrorOption) IsDefined

func (o MapErrorOption) IsDefined() bool

func (MapErrorOption) Map

func (o MapErrorOption) Map() map[string]error

func (*MapErrorOption) Set

func (o *MapErrorOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapErrorOption) String

func (o MapErrorOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapErrorOption) WriteAnswer

func (o *MapErrorOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapFloat32Option

type MapFloat32Option map[string]Float32Option

func (MapFloat32Option) IsCumulative

func (o MapFloat32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapFloat32Option) IsDefined

func (o MapFloat32Option) IsDefined() bool

func (MapFloat32Option) Map

func (o MapFloat32Option) Map() map[string]float32

func (*MapFloat32Option) Set

func (o *MapFloat32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapFloat32Option) String

func (o MapFloat32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapFloat32Option) WriteAnswer

func (o *MapFloat32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapFloat64Option

type MapFloat64Option map[string]Float64Option

func (MapFloat64Option) IsCumulative

func (o MapFloat64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapFloat64Option) IsDefined

func (o MapFloat64Option) IsDefined() bool

func (MapFloat64Option) Map

func (o MapFloat64Option) Map() map[string]float64

func (*MapFloat64Option) Set

func (o *MapFloat64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapFloat64Option) String

func (o MapFloat64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapFloat64Option) WriteAnswer

func (o *MapFloat64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapInt16Option

type MapInt16Option map[string]Int16Option

func (MapInt16Option) IsCumulative

func (o MapInt16Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapInt16Option) IsDefined

func (o MapInt16Option) IsDefined() bool

func (MapInt16Option) Map

func (o MapInt16Option) Map() map[string]int16

func (*MapInt16Option) Set

func (o *MapInt16Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapInt16Option) String

func (o MapInt16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapInt16Option) WriteAnswer

func (o *MapInt16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapInt32Option

type MapInt32Option map[string]Int32Option

func (MapInt32Option) IsCumulative

func (o MapInt32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapInt32Option) IsDefined

func (o MapInt32Option) IsDefined() bool

func (MapInt32Option) Map

func (o MapInt32Option) Map() map[string]int32

func (*MapInt32Option) Set

func (o *MapInt32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapInt32Option) String

func (o MapInt32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapInt32Option) WriteAnswer

func (o *MapInt32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapInt64Option

type MapInt64Option map[string]Int64Option

func (MapInt64Option) IsCumulative

func (o MapInt64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapInt64Option) IsDefined

func (o MapInt64Option) IsDefined() bool

func (MapInt64Option) Map

func (o MapInt64Option) Map() map[string]int64

func (*MapInt64Option) Set

func (o *MapInt64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapInt64Option) String

func (o MapInt64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapInt64Option) WriteAnswer

func (o *MapInt64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapInt8Option

type MapInt8Option map[string]Int8Option

func (MapInt8Option) IsCumulative

func (o MapInt8Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapInt8Option) IsDefined

func (o MapInt8Option) IsDefined() bool

func (MapInt8Option) Map

func (o MapInt8Option) Map() map[string]int8

func (*MapInt8Option) Set

func (o *MapInt8Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapInt8Option) String

func (o MapInt8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapInt8Option) WriteAnswer

func (o *MapInt8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapIntOption

type MapIntOption map[string]IntOption

func (MapIntOption) IsCumulative

func (o MapIntOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapIntOption) IsDefined

func (o MapIntOption) IsDefined() bool

func (MapIntOption) Map

func (o MapIntOption) Map() map[string]int

func (*MapIntOption) Set

func (o *MapIntOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapIntOption) String

func (o MapIntOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapIntOption) WriteAnswer

func (o *MapIntOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapRawTypeOption

type MapRawTypeOption map[string]RawTypeOption

func (MapRawTypeOption) IsCumulative

func (o MapRawTypeOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapRawTypeOption) IsDefined

func (o MapRawTypeOption) IsDefined() bool

func (MapRawTypeOption) Map

func (o MapRawTypeOption) Map() map[string]RawType

func (*MapRawTypeOption) Set

func (o *MapRawTypeOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapRawTypeOption) String

func (o MapRawTypeOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapRawTypeOption) WriteAnswer

func (o *MapRawTypeOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapRuneOption

type MapRuneOption map[string]RuneOption

func (MapRuneOption) IsCumulative

func (o MapRuneOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapRuneOption) IsDefined

func (o MapRuneOption) IsDefined() bool

func (MapRuneOption) Map

func (o MapRuneOption) Map() map[string]rune

func (*MapRuneOption) Set

func (o *MapRuneOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapRuneOption) String

func (o MapRuneOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapRuneOption) WriteAnswer

func (o *MapRuneOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapStringOption

type MapStringOption map[string]StringOption

func (MapStringOption) IsCumulative

func (o MapStringOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapStringOption) IsDefined

func (o MapStringOption) IsDefined() bool

func (MapStringOption) Map

func (o MapStringOption) Map() map[string]string

func (*MapStringOption) Set

func (o *MapStringOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapStringOption) String

func (o MapStringOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapStringOption) WriteAnswer

func (o *MapStringOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUint16Option

type MapUint16Option map[string]Uint16Option

func (MapUint16Option) IsCumulative

func (o MapUint16Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUint16Option) IsDefined

func (o MapUint16Option) IsDefined() bool

func (MapUint16Option) Map

func (o MapUint16Option) Map() map[string]uint16

func (*MapUint16Option) Set

func (o *MapUint16Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUint16Option) String

func (o MapUint16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUint16Option) WriteAnswer

func (o *MapUint16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUint32Option

type MapUint32Option map[string]Uint32Option

func (MapUint32Option) IsCumulative

func (o MapUint32Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUint32Option) IsDefined

func (o MapUint32Option) IsDefined() bool

func (MapUint32Option) Map

func (o MapUint32Option) Map() map[string]uint32

func (*MapUint32Option) Set

func (o *MapUint32Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUint32Option) String

func (o MapUint32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUint32Option) WriteAnswer

func (o *MapUint32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUint64Option

type MapUint64Option map[string]Uint64Option

func (MapUint64Option) IsCumulative

func (o MapUint64Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUint64Option) IsDefined

func (o MapUint64Option) IsDefined() bool

func (MapUint64Option) Map

func (o MapUint64Option) Map() map[string]uint64

func (*MapUint64Option) Set

func (o *MapUint64Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUint64Option) String

func (o MapUint64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUint64Option) WriteAnswer

func (o *MapUint64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUint8Option

type MapUint8Option map[string]Uint8Option

func (MapUint8Option) IsCumulative

func (o MapUint8Option) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUint8Option) IsDefined

func (o MapUint8Option) IsDefined() bool

func (MapUint8Option) Map

func (o MapUint8Option) Map() map[string]uint8

func (*MapUint8Option) Set

func (o *MapUint8Option) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUint8Option) String

func (o MapUint8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUint8Option) WriteAnswer

func (o *MapUint8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUintOption

type MapUintOption map[string]UintOption

func (MapUintOption) IsCumulative

func (o MapUintOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUintOption) IsDefined

func (o MapUintOption) IsDefined() bool

func (MapUintOption) Map

func (o MapUintOption) Map() map[string]uint

func (*MapUintOption) Set

func (o *MapUintOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUintOption) String

func (o MapUintOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUintOption) WriteAnswer

func (o *MapUintOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MapUintptrOption

type MapUintptrOption map[string]UintptrOption

func (MapUintptrOption) IsCumulative

func (o MapUintptrOption) IsCumulative() bool

IsCumulative is required for kingpin interfaces to allow multiple values to be set on the data structure.

func (MapUintptrOption) IsDefined

func (o MapUintptrOption) IsDefined() bool

func (MapUintptrOption) Map

func (o MapUintptrOption) Map() map[string]uintptr

func (*MapUintptrOption) Set

func (o *MapUintptrOption) Set(value string) error

Set is required for kingpin interfaces to allow command line params to be set to our map datatype

func (MapUintptrOption) String

func (o MapUintptrOption) String() string

String is required for kingpin to generate usage with this datatype

func (*MapUintptrOption) WriteAnswer

func (o *MapUintptrOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type MergeOption added in v1.0.1

type MergeOption func(*Merger)

func PreserveMap added in v1.0.1

func PreserveMap(keys ...string) MergeOption

func WithSourceFile added in v1.0.1

func WithSourceFile(source string) MergeOption

type Merger added in v1.0.1

type Merger struct {
	Config ConfigOptions `json:"config,omitempty" yaml:"config,omitempty"`
	// contains filtered or unexported fields
}

func NewMerger added in v1.0.1

func NewMerger(options ...MergeOption) *Merger

func (*Merger) MakeMergeStruct added in v1.0.1

func (m *Merger) MakeMergeStruct(structs ...interface{}) interface{}

type Option

type Option func(*FigTree)

func WithApplyChangeSet added in v1.0.1

func WithApplyChangeSet(apply ChangeSetFunc) Option

func WithConfigDir added in v1.0.1

func WithConfigDir(dir string) Option

func WithCwd added in v1.0.1

func WithCwd(cwd string) Option

func WithEnvPrefix added in v1.0.1

func WithEnvPrefix(env string) Option

func WithFilterOut added in v1.0.1

func WithFilterOut(filt FilterOut) Option

func WithHome added in v1.0.1

func WithHome(home string) Option

func WithPreProcessor added in v1.0.1

func WithPreProcessor(pp PreProcessor) Option

func WithUnmarshaller added in v1.0.1

func WithUnmarshaller(unmarshaller func(in []byte, out interface{}) error) Option

func WithoutExec added in v1.0.1

func WithoutExec() Option

type PreProcessor added in v1.0.1

type PreProcessor func([]byte) ([]byte, error)

type RawType

type RawType generic.Type

type RawTypeOption

type RawTypeOption struct {
	Source  string
	Defined bool
	Value   RawType
}

func NewRawTypeOption

func NewRawTypeOption(dflt RawType) RawTypeOption

func (*RawTypeOption) GetSource

func (o *RawTypeOption) GetSource() string

func (RawTypeOption) GetValue

func (o RawTypeOption) GetValue() interface{}

func (RawTypeOption) IsDefined

func (o RawTypeOption) IsDefined() bool

func (RawTypeOption) MarshalJSON

func (o RawTypeOption) MarshalJSON() ([]byte, error)

func (RawTypeOption) MarshalYAML

func (o RawTypeOption) MarshalYAML() (interface{}, error)

func (*RawTypeOption) Set

func (o *RawTypeOption) Set(s string) error

This is useful with kingpin option parser

func (*RawTypeOption) SetSource

func (o *RawTypeOption) SetSource(source string)

func (*RawTypeOption) SetValue

func (o *RawTypeOption) SetValue(v interface{}) error

func (RawTypeOption) String

func (o RawTypeOption) String() string

String is required for kingpin to generate usage with this datatype

func (*RawTypeOption) UnmarshalJSON

func (o *RawTypeOption) UnmarshalJSON(b []byte) error

func (*RawTypeOption) UnmarshalYAML

func (o *RawTypeOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*RawTypeOption) WriteAnswer

func (o *RawTypeOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type RuneOption

type RuneOption struct {
	Source  string
	Defined bool
	Value   rune
}

func NewRuneOption

func NewRuneOption(dflt rune) RuneOption

func (*RuneOption) GetSource

func (o *RuneOption) GetSource() string

func (RuneOption) GetValue

func (o RuneOption) GetValue() interface{}

func (RuneOption) IsDefined

func (o RuneOption) IsDefined() bool

func (RuneOption) MarshalJSON

func (o RuneOption) MarshalJSON() ([]byte, error)

func (RuneOption) MarshalYAML

func (o RuneOption) MarshalYAML() (interface{}, error)

func (*RuneOption) Set

func (o *RuneOption) Set(s string) error

This is useful with kingpin option parser

func (*RuneOption) SetSource

func (o *RuneOption) SetSource(source string)

func (*RuneOption) SetValue

func (o *RuneOption) SetValue(v interface{}) error

func (RuneOption) String

func (o RuneOption) String() string

String is required for kingpin to generate usage with this datatype

func (*RuneOption) UnmarshalJSON

func (o *RuneOption) UnmarshalJSON(b []byte) error

func (*RuneOption) UnmarshalYAML

func (o *RuneOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*RuneOption) WriteAnswer

func (o *RuneOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type StringOption

type StringOption struct {
	Source  string
	Defined bool
	Value   string
}

func NewStringOption

func NewStringOption(dflt string) StringOption

func (*StringOption) GetSource

func (o *StringOption) GetSource() string

func (StringOption) GetValue

func (o StringOption) GetValue() interface{}

func (StringOption) IsDefined

func (o StringOption) IsDefined() bool

func (StringOption) MarshalJSON

func (o StringOption) MarshalJSON() ([]byte, error)

func (StringOption) MarshalYAML

func (o StringOption) MarshalYAML() (interface{}, error)

func (*StringOption) Set

func (o *StringOption) Set(s string) error

This is useful with kingpin option parser

func (*StringOption) SetSource

func (o *StringOption) SetSource(source string)

func (*StringOption) SetValue

func (o *StringOption) SetValue(v interface{}) error

func (StringOption) String

func (o StringOption) String() string

String is required for kingpin to generate usage with this datatype

func (*StringOption) UnmarshalJSON

func (o *StringOption) UnmarshalJSON(b []byte) error

func (*StringOption) UnmarshalYAML

func (o *StringOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*StringOption) WriteAnswer

func (o *StringOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Uint16Option

type Uint16Option struct {
	Source  string
	Defined bool
	Value   uint16
}

func NewUint16Option

func NewUint16Option(dflt uint16) Uint16Option

func (*Uint16Option) GetSource

func (o *Uint16Option) GetSource() string

func (Uint16Option) GetValue

func (o Uint16Option) GetValue() interface{}

func (Uint16Option) IsDefined

func (o Uint16Option) IsDefined() bool

func (Uint16Option) MarshalJSON

func (o Uint16Option) MarshalJSON() ([]byte, error)

func (Uint16Option) MarshalYAML

func (o Uint16Option) MarshalYAML() (interface{}, error)

func (*Uint16Option) Set

func (o *Uint16Option) Set(s string) error

This is useful with kingpin option parser

func (*Uint16Option) SetSource

func (o *Uint16Option) SetSource(source string)

func (*Uint16Option) SetValue

func (o *Uint16Option) SetValue(v interface{}) error

func (Uint16Option) String

func (o Uint16Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Uint16Option) UnmarshalJSON

func (o *Uint16Option) UnmarshalJSON(b []byte) error

func (*Uint16Option) UnmarshalYAML

func (o *Uint16Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Uint16Option) WriteAnswer

func (o *Uint16Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Uint32Option

type Uint32Option struct {
	Source  string
	Defined bool
	Value   uint32
}

func NewUint32Option

func NewUint32Option(dflt uint32) Uint32Option

func (*Uint32Option) GetSource

func (o *Uint32Option) GetSource() string

func (Uint32Option) GetValue

func (o Uint32Option) GetValue() interface{}

func (Uint32Option) IsDefined

func (o Uint32Option) IsDefined() bool

func (Uint32Option) MarshalJSON

func (o Uint32Option) MarshalJSON() ([]byte, error)

func (Uint32Option) MarshalYAML

func (o Uint32Option) MarshalYAML() (interface{}, error)

func (*Uint32Option) Set

func (o *Uint32Option) Set(s string) error

This is useful with kingpin option parser

func (*Uint32Option) SetSource

func (o *Uint32Option) SetSource(source string)

func (*Uint32Option) SetValue

func (o *Uint32Option) SetValue(v interface{}) error

func (Uint32Option) String

func (o Uint32Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Uint32Option) UnmarshalJSON

func (o *Uint32Option) UnmarshalJSON(b []byte) error

func (*Uint32Option) UnmarshalYAML

func (o *Uint32Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Uint32Option) WriteAnswer

func (o *Uint32Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Uint64Option

type Uint64Option struct {
	Source  string
	Defined bool
	Value   uint64
}

func NewUint64Option

func NewUint64Option(dflt uint64) Uint64Option

func (*Uint64Option) GetSource

func (o *Uint64Option) GetSource() string

func (Uint64Option) GetValue

func (o Uint64Option) GetValue() interface{}

func (Uint64Option) IsDefined

func (o Uint64Option) IsDefined() bool

func (Uint64Option) MarshalJSON

func (o Uint64Option) MarshalJSON() ([]byte, error)

func (Uint64Option) MarshalYAML

func (o Uint64Option) MarshalYAML() (interface{}, error)

func (*Uint64Option) Set

func (o *Uint64Option) Set(s string) error

This is useful with kingpin option parser

func (*Uint64Option) SetSource

func (o *Uint64Option) SetSource(source string)

func (*Uint64Option) SetValue

func (o *Uint64Option) SetValue(v interface{}) error

func (Uint64Option) String

func (o Uint64Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Uint64Option) UnmarshalJSON

func (o *Uint64Option) UnmarshalJSON(b []byte) error

func (*Uint64Option) UnmarshalYAML

func (o *Uint64Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Uint64Option) WriteAnswer

func (o *Uint64Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type Uint8Option

type Uint8Option struct {
	Source  string
	Defined bool
	Value   uint8
}

func NewUint8Option

func NewUint8Option(dflt uint8) Uint8Option

func (*Uint8Option) GetSource

func (o *Uint8Option) GetSource() string

func (Uint8Option) GetValue

func (o Uint8Option) GetValue() interface{}

func (Uint8Option) IsDefined

func (o Uint8Option) IsDefined() bool

func (Uint8Option) MarshalJSON

func (o Uint8Option) MarshalJSON() ([]byte, error)

func (Uint8Option) MarshalYAML

func (o Uint8Option) MarshalYAML() (interface{}, error)

func (*Uint8Option) Set

func (o *Uint8Option) Set(s string) error

This is useful with kingpin option parser

func (*Uint8Option) SetSource

func (o *Uint8Option) SetSource(source string)

func (*Uint8Option) SetValue

func (o *Uint8Option) SetValue(v interface{}) error

func (Uint8Option) String

func (o Uint8Option) String() string

String is required for kingpin to generate usage with this datatype

func (*Uint8Option) UnmarshalJSON

func (o *Uint8Option) UnmarshalJSON(b []byte) error

func (*Uint8Option) UnmarshalYAML

func (o *Uint8Option) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Uint8Option) WriteAnswer

func (o *Uint8Option) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type UintOption

type UintOption struct {
	Source  string
	Defined bool
	Value   uint
}

func NewUintOption

func NewUintOption(dflt uint) UintOption

func (*UintOption) GetSource

func (o *UintOption) GetSource() string

func (UintOption) GetValue

func (o UintOption) GetValue() interface{}

func (UintOption) IsDefined

func (o UintOption) IsDefined() bool

func (UintOption) MarshalJSON

func (o UintOption) MarshalJSON() ([]byte, error)

func (UintOption) MarshalYAML

func (o UintOption) MarshalYAML() (interface{}, error)

func (*UintOption) Set

func (o *UintOption) Set(s string) error

This is useful with kingpin option parser

func (*UintOption) SetSource

func (o *UintOption) SetSource(source string)

func (*UintOption) SetValue

func (o *UintOption) SetValue(v interface{}) error

func (UintOption) String

func (o UintOption) String() string

String is required for kingpin to generate usage with this datatype

func (*UintOption) UnmarshalJSON

func (o *UintOption) UnmarshalJSON(b []byte) error

func (*UintOption) UnmarshalYAML

func (o *UintOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*UintOption) WriteAnswer

func (o *UintOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

type UintptrOption

type UintptrOption struct {
	Source  string
	Defined bool
	Value   uintptr
}

func NewUintptrOption

func NewUintptrOption(dflt uintptr) UintptrOption

func (*UintptrOption) GetSource

func (o *UintptrOption) GetSource() string

func (UintptrOption) GetValue

func (o UintptrOption) GetValue() interface{}

func (UintptrOption) IsDefined

func (o UintptrOption) IsDefined() bool

func (UintptrOption) MarshalJSON

func (o UintptrOption) MarshalJSON() ([]byte, error)

func (UintptrOption) MarshalYAML

func (o UintptrOption) MarshalYAML() (interface{}, error)

func (*UintptrOption) Set

func (o *UintptrOption) Set(s string) error

This is useful with kingpin option parser

func (*UintptrOption) SetSource

func (o *UintptrOption) SetSource(source string)

func (*UintptrOption) SetValue

func (o *UintptrOption) SetValue(v interface{}) error

func (UintptrOption) String

func (o UintptrOption) String() string

String is required for kingpin to generate usage with this datatype

func (*UintptrOption) UnmarshalJSON

func (o *UintptrOption) UnmarshalJSON(b []byte) error

func (*UintptrOption) UnmarshalYAML

func (o *UintptrOption) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*UintptrOption) WriteAnswer

func (o *UintptrOption) WriteAnswer(name string, value interface{}) error

This is useful with survey prompting library

Jump to

Keyboard shortcuts

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