Versions in this module Expand all Collapse all v2 v2.25.7 Jun 15, 2023 Changes in this version + func ApplyInputSourceValues(cCtx *cli.Context, inputSourceContext InputSourceContext, flags []cli.Flag) error + func InitInputSource(flags []cli.Flag, createInputSource func() (InputSourceContext, error)) cli.BeforeFunc + func InitInputSourceWithContext(flags []cli.Flag, ...) cli.BeforeFunc + func NewJSONSourceFromFlagFunc(flag string) func(c *cli.Context) (InputSourceContext, error) + func NewTomlSourceFromFlagFunc(flagFileName string) func(cCtx *cli.Context) (InputSourceContext, error) + func NewYamlSourceFromFlagFunc(flagFileName string) func(cCtx *cli.Context) (InputSourceContext, error) + type BoolFlag struct + func NewBoolFlag(fl *cli.BoolFlag) *BoolFlag + func (f *BoolFlag) Apply(set *flag.FlagSet) error + func (f *BoolFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type DurationFlag struct + func NewDurationFlag(fl *cli.DurationFlag) *DurationFlag + func (f *DurationFlag) Apply(set *flag.FlagSet) error + func (f *DurationFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type FlagInputSourceExtension interface + ApplyInputSourceValue func(cCtx *cli.Context, isc InputSourceContext) error + type Float64Flag struct + func NewFloat64Flag(fl *cli.Float64Flag) *Float64Flag + func (f *Float64Flag) Apply(set *flag.FlagSet) error + func (f *Float64Flag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type Float64SliceFlag struct + func NewFloat64SliceFlag(fl *cli.Float64SliceFlag) *Float64SliceFlag + func (f *Float64SliceFlag) Apply(set *flag.FlagSet) error + func (f *Float64SliceFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type GenericFlag struct + func NewGenericFlag(fl *cli.GenericFlag) *GenericFlag + func (f *GenericFlag) Apply(set *flag.FlagSet) error + func (f *GenericFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type InputSourceContext interface + Bool func(name string) (bool, error) + Duration func(name string) (time.Duration, error) + Float64 func(name string) (float64, error) + Float64Slice func(name string) ([]float64, error) + Generic func(name string) (cli.Generic, error) + Int func(name string) (int, error) + Int64 func(name string) (int64, error) + Int64Slice func(name string) ([]int64, error) + IntSlice func(name string) ([]int, error) + Source func() string + String func(name string) (string, error) + StringSlice func(name string) ([]string, error) + Uint func(name string) (uint, error) + Uint64 func(name string) (uint64, error) + func NewJSONSource(data []byte) (InputSourceContext, error) + func NewJSONSourceFromFile(f string) (InputSourceContext, error) + func NewJSONSourceFromReader(r io.Reader) (InputSourceContext, error) + func NewTomlSourceFromFile(file string) (InputSourceContext, error) + func NewYamlSourceFromFile(file string) (InputSourceContext, error) + type Int64Flag struct + func NewInt64Flag(fl *cli.Int64Flag) *Int64Flag + func (f *Int64Flag) Apply(set *flag.FlagSet) error + func (f *Int64Flag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type Int64SliceFlag struct + func NewInt64SliceFlag(fl *cli.Int64SliceFlag) *Int64SliceFlag + func (f *Int64SliceFlag) Apply(set *flag.FlagSet) error + func (f *Int64SliceFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type IntFlag struct + func NewIntFlag(fl *cli.IntFlag) *IntFlag + func (f *IntFlag) Apply(set *flag.FlagSet) error + func (f *IntFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type IntSliceFlag struct + func NewIntSliceFlag(fl *cli.IntSliceFlag) *IntSliceFlag + func (f *IntSliceFlag) Apply(set *flag.FlagSet) error + func (f *IntSliceFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type MapInputSource struct + func NewMapInputSource(file string, valueMap map[interface{}]interface{}) *MapInputSource + func (fsm *MapInputSource) Bool(name string) (bool, error) + func (fsm *MapInputSource) Duration(name string) (time.Duration, error) + func (fsm *MapInputSource) Float64(name string) (float64, error) + func (fsm *MapInputSource) Float64Slice(name string) ([]float64, error) + func (fsm *MapInputSource) Generic(name string) (cli.Generic, error) + func (fsm *MapInputSource) Int(name string) (int, error) + func (fsm *MapInputSource) Int64(name string) (int64, error) + func (fsm *MapInputSource) Int64Slice(name string) ([]int64, error) + func (fsm *MapInputSource) IntSlice(name string) ([]int, error) + func (fsm *MapInputSource) Source() string + func (fsm *MapInputSource) String(name string) (string, error) + func (fsm *MapInputSource) StringSlice(name string) ([]string, error) + func (fsm *MapInputSource) Uint(name string) (uint, error) + func (fsm *MapInputSource) Uint64(name string) (uint64, error) + type PathFlag struct + func NewPathFlag(fl *cli.PathFlag) *PathFlag + func (f *PathFlag) Apply(set *flag.FlagSet) error + func (f *PathFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type StringFlag struct + func NewStringFlag(fl *cli.StringFlag) *StringFlag + func (f *StringFlag) Apply(set *flag.FlagSet) error + func (f *StringFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type StringSliceFlag struct + func NewStringSliceFlag(fl *cli.StringSliceFlag) *StringSliceFlag + func (f *StringSliceFlag) Apply(set *flag.FlagSet) error + func (f *StringSliceFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type Uint64Flag struct + func NewUint64Flag(fl *cli.Uint64Flag) *Uint64Flag + func (f *Uint64Flag) Apply(set *flag.FlagSet) error + func (f *Uint64Flag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error + type UintFlag struct + func NewUintFlag(fl *cli.UintFlag) *UintFlag + func (f *UintFlag) Apply(set *flag.FlagSet) error + func (f *UintFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error Other modules containing this package github.com/gozelle/cli