mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-18 04:50:23 -04:00
22 lines
550 B
Go
22 lines
550 B
Go
![]() |
package altsrc
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"gopkg.in/urfave/cli.v1"
|
||
|
)
|
||
|
|
||
|
// InputSourceContext is an interface used to allow
|
||
|
// other input sources to be implemented as needed.
|
||
|
type InputSourceContext interface {
|
||
|
Int(name string) (int, error)
|
||
|
Duration(name string) (time.Duration, error)
|
||
|
Float64(name string) (float64, error)
|
||
|
String(name string) (string, error)
|
||
|
StringSlice(name string) ([]string, error)
|
||
|
IntSlice(name string) ([]int, error)
|
||
|
Generic(name string) (cli.Generic, error)
|
||
|
Bool(name string) (bool, error)
|
||
|
BoolT(name string) (bool, error)
|
||
|
}
|