urfave-cli/altsrc/input_source_context.go
chrisprobinson d3b02e41b0 Update to add build contraints to not compile in yaml support
in the case the golang version is less than golang 1.2
2016-02-21 20:06:02 -08:00

22 lines
554 B
Go

package altsrc
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, 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)
}