|
|
@ -2448,6 +2448,7 @@ type InputSourceContext interface {
|
|
|
|
String(name string) (string, error)
|
|
|
|
String(name string) (string, error)
|
|
|
|
StringSlice(name string) ([]string, error)
|
|
|
|
StringSlice(name string) ([]string, error)
|
|
|
|
IntSlice(name string) ([]int, error)
|
|
|
|
IntSlice(name string) ([]int, error)
|
|
|
|
|
|
|
|
Int64Slice(name string) ([]int64, error)
|
|
|
|
Generic(name string) (cli.Generic, error)
|
|
|
|
Generic(name string) (cli.Generic, error)
|
|
|
|
Bool(name string) (bool, error)
|
|
|
|
Bool(name string) (bool, error)
|
|
|
|
|
|
|
|
|
|
|
@ -2505,6 +2506,9 @@ func (f *Int64SliceFlag) Apply(set *flag.FlagSet) error
|
|
|
|
Apply saves the flagSet for later usage calls, then calls the wrapped
|
|
|
|
Apply saves the flagSet for later usage calls, then calls the wrapped
|
|
|
|
Int64SliceFlag.Apply
|
|
|
|
Int64SliceFlag.Apply
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (f *Int64SliceFlag) ApplyInputSourceValue(cCtx *cli.Context, isc InputSourceContext) error
|
|
|
|
|
|
|
|
ApplyInputSourceValue applies a Int64Slice value if required
|
|
|
|
|
|
|
|
|
|
|
|
type IntFlag struct {
|
|
|
|
type IntFlag struct {
|
|
|
|
*cli.IntFlag
|
|
|
|
*cli.IntFlag
|
|
|
|
// Has unexported fields.
|
|
|
|
// Has unexported fields.
|
|
|
@ -2565,6 +2569,10 @@ func (fsm *MapInputSource) Generic(name string) (cli.Generic, error)
|
|
|
|
func (fsm *MapInputSource) Int(name string) (int, error)
|
|
|
|
func (fsm *MapInputSource) Int(name string) (int, error)
|
|
|
|
Int returns an int from the map if it exists otherwise returns 0
|
|
|
|
Int returns an int from the map if it exists otherwise returns 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (fsm *MapInputSource) Int64Slice(name string) ([]int64, error)
|
|
|
|
|
|
|
|
Int64Slice returns an []int64 from the map if it exists otherwise returns
|
|
|
|
|
|
|
|
nil
|
|
|
|
|
|
|
|
|
|
|
|
func (fsm *MapInputSource) IntSlice(name string) ([]int, error)
|
|
|
|
func (fsm *MapInputSource) IntSlice(name string) ([]int, error)
|
|
|
|
IntSlice returns an []int from the map if it exists otherwise returns nil
|
|
|
|
IntSlice returns an []int from the map if it exists otherwise returns nil
|
|
|
|
|
|
|
|
|
|
|
|