You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
urfave-cli/inputfilesupport/input_source_context.go

22 lines
483 B

package inputfilesupport
import (
"time"
"github.com/codegangsta/cli"
)
// InputSourceContext is an interface used to allow
// other input sources to be implemented as needed.
type InputSourceContext interface {
Int(name string) int
Duration(name string) time.Duration
Float64(name string) float64
String(name string) string
StringSlice(name string) []string
IntSlice(name string) []int
Generic(name string) cli.Generic
Bool(name string) bool
BoolT(name string) bool
}