import "github.com/jawher/mow.cli/internal/values"
IsBool checks if a given value is a bool value, i.e. implements the BoolValued interface
SetFromEnv fills a value from a list of env vars
BoolValue is a flag.Value type holding boolean values
NewBool creates a new bool value
IsBoolFlag returns true
IsDefault return true if the bool value is false
Set sets the value from a provided string
type BoolValued interface { flag.Value // IsBoolFlag should return true to indicate that this value is a bool value IsBoolFlag() bool }
BoolValued is an interface values can implement to indicate that they are a bool option, i.e. can be set without providing a value with just -f for example
type DefaultValued interface { // IsDefault should return true if the value stored is the default value, and thus does not need be shown in the help message IsDefault() bool }
DefaultValued in an interface to determine if the value stored is the default value, and thus does not need be shown in the help message
Float64Value is a flag.Value type holding int values
func NewFloat64(into *float64, v float64) *Float64Value
NewFloat64 creates a new int value
func (ia *Float64Value) Set(s string) error
Set sets the value from a provided string
func (ia *Float64Value) String() string
Floats64Value is a flag.Value type holding int values
func NewFloats64(into *[]float64, v []float64) *Floats64Value
NewFloats64 creates a new multi-int value
func (ia *Floats64Value) Clear()
Clear clears the slice
func (ia *Floats64Value) IsDefault() bool
IsDefault return true if the int slice is empty
func (ia *Floats64Value) Set(s string) error
Set sets the value from a provided string
func (ia *Floats64Value) String() string
IntValue is a flag.Value type holding int values
NewInt creates a new int value
Set sets the value from a provided string
IntsValue is a flag.Value type holding int values
NewInts creates a new multi-int value
Clear clears the slice
IsDefault return true if the int slice is empty
Set sets the value from a provided string
MultiValued is an interface ti indicate that a value can hold multiple values
StringValue is a flag.Value type holding string values
func NewString(into *string, v string) *StringValue
NewString creates a new string value
func (sa *StringValue) IsDefault() bool
IsDefault return true if the string value is empty
func (sa *StringValue) Set(s string) error
Set sets the value from a provided string
func (sa *StringValue) String() string
StringsValue is a flag.Value type holding string slices values
func NewStrings(into *[]string, v []string) *StringsValue
NewStrings creates a new multi-string value
func (sa *StringsValue) Clear()
Clear clears the slice
func (sa *StringsValue) IsDefault() bool
IsDefault return true if the string slice is empty
func (sa *StringsValue) Set(s string) error
Set sets the value from a provided string
func (sa *StringsValue) String() string
Package values imports 5 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.