Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeepStringMap ¶
type DeepStringMap struct {
// contains filtered or unexported fields
}
DeepStringMap implements the Value and ValueCreator interfaces for nested string maps.
func (DeepStringMap) Create ¶
func (d DeepStringMap) Create( v map[string]map[string]string, p *map[string]map[string]string, _ DeepStringMapConfig, ) cli.Value
Create implements the ValueCreator interface.
func (*DeepStringMap) Get ¶
func (d *DeepStringMap) Get() any
Get implements the flag.Value interface.
func (*DeepStringMap) Set ¶
func (d *DeepStringMap) Set(v string) error
Set implements the flag.Value interface.
func (*DeepStringMap) String ¶
func (d *DeepStringMap) String() string
String implements the flag.Value interface.
type DeepStringMapConfig ¶
type DeepStringMapConfig struct {
}
DeepStringMapConfig defines the configuration for deep string map flags.
type DeepStringMapFlag ¶
type DeepStringMapFlag = cli.FlagBase[map[string]map[string]string, DeepStringMapConfig, DeepStringMap]
DeepStringMapFlag is a flag type which supports nested JSON string maps.
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int implements the Value and ValueCreator interfaces for integers.
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map implements the Value and ValueCreator interfaces for strict JSON maps.
type StringMap ¶
type StringMap struct {
// contains filtered or unexported fields
}
StringMap implements the Value and ValueCreator interfaces for string maps.
type StringMapConfig ¶
type StringMapConfig struct {
}
StringMapConfig defines the configuration for string map flags.
type StringMapFlag ¶
StringMapFlag is a flag type which supports JSON string maps.
type StringSlice ¶
type StringSlice struct {
// contains filtered or unexported fields
}
StringSlice implements the Value and ValueCreator interfaces for string slices.
func (StringSlice) Create ¶
func (s StringSlice) Create(v []string, p *[]string, c StringSliceConfig) cli.Value
Create implements the ValueCreator interface.
func (*StringSlice) Set ¶
func (s *StringSlice) Set(v string) error
Set implements the flag.Value interface.
func (*StringSlice) String ¶
func (s *StringSlice) String() string
String implements the flag.Value interface.
func (StringSlice) ToString ¶
func (s StringSlice) ToString(v []string) string
ToString implements the ValueCreator interface.
type StringSliceConfig ¶
StringConfig defines the configuration for string flags.
type StringSliceFlag ¶
type StringSliceFlag = cli.FlagBase[[]string, StringSliceConfig, StringSlice]
StringSliceFlag is a flag type which support comma separated values and escaping to not split at unwanted lines.