Versions in this module Expand all Collapse all v0 v0.4.0 Apr 7, 2016 Changes in this version + func ApplyInputSourceValues(context *cli.Context, inputSourceContext InputSourceContext, flags []cli.Flag) error + func InitInputSource(flags []cli.Flag, createInputSource func() (InputSourceContext, error)) func(context *cli.Context) error + func InitInputSourceWithContext(flags []cli.Flag, ...) func(context *cli.Context) error + type BoolFlag struct + func NewBoolFlag(flag cli.BoolFlag) *BoolFlag + func (f *BoolFlag) Apply(set *flag.FlagSet) + func (f *BoolFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type BoolTFlag struct + func NewBoolTFlag(flag cli.BoolTFlag) *BoolTFlag + func (f *BoolTFlag) Apply(set *flag.FlagSet) + func (f *BoolTFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type DurationFlag struct + func NewDurationFlag(flag cli.DurationFlag) *DurationFlag + func (f *DurationFlag) Apply(set *flag.FlagSet) + func (f *DurationFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type FlagInputSourceExtension interface + ApplyInputSourceValue func(context *cli.Context, isc InputSourceContext) error + type Float64Flag struct + func NewFloat64Flag(flag cli.Float64Flag) *Float64Flag + func (f *Float64Flag) Apply(set *flag.FlagSet) + func (f *Float64Flag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type GenericFlag struct + func NewGenericFlag(flag cli.GenericFlag) *GenericFlag + func (f *GenericFlag) Apply(set *flag.FlagSet) + func (f *GenericFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type InputSourceContext interface + Bool func(name string) (bool, error) + BoolT func(name string) (bool, error) + Duration func(name string) (time.Duration, error) + Float64 func(name string) (float64, error) + Generic func(name string) (cli.Generic, error) + Int func(name string) (int, error) + IntSlice func(name string) ([]int, error) + String func(name string) (string, error) + StringSlice func(name string) ([]string, error) + type IntFlag struct + func NewIntFlag(flag cli.IntFlag) *IntFlag + func (f *IntFlag) Apply(set *flag.FlagSet) + func (f *IntFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type IntSliceFlag struct + func NewIntSliceFlag(flag cli.IntSliceFlag) *IntSliceFlag + func (f *IntSliceFlag) Apply(set *flag.FlagSet) + func (f *IntSliceFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type MapInputSource struct + func (fsm *MapInputSource) Bool(name string) (bool, error) + func (fsm *MapInputSource) BoolT(name string) (bool, error) + func (fsm *MapInputSource) Duration(name string) (time.Duration, error) + func (fsm *MapInputSource) Float64(name string) (float64, error) + func (fsm *MapInputSource) Generic(name string) (cli.Generic, error) + func (fsm *MapInputSource) Int(name string) (int, error) + func (fsm *MapInputSource) IntSlice(name string) ([]int, error) + func (fsm *MapInputSource) String(name string) (string, error) + func (fsm *MapInputSource) StringSlice(name string) ([]string, error) + type StringFlag struct + func NewStringFlag(flag cli.StringFlag) *StringFlag + func (f *StringFlag) Apply(set *flag.FlagSet) + func (f *StringFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error + type StringSliceFlag struct + func NewStringSliceFlag(flag cli.StringSliceFlag) *StringSliceFlag + func (f *StringSliceFlag) Apply(set *flag.FlagSet) + func (f *StringSliceFlag) ApplyInputSourceValue(context *cli.Context, isc InputSourceContext) error v0.4.0-changelog Apr 7, 2016