...

Source file src/github.com/urfave/cli/v2/altsrc/input_source_context.go

Documentation: github.com/urfave/cli/v2/altsrc

     1  package altsrc
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/urfave/cli/v2"
     7  )
     8  
     9  // InputSourceContext is an interface used to allow
    10  // other input sources to be implemented as needed.
    11  //
    12  // Source returns an identifier for the input source. In case of file source
    13  // it should return path to the file.
    14  type InputSourceContext interface {
    15  	Source() string
    16  
    17  	Int(name string) (int, error)
    18  	Int64(name string) (int64, error)
    19  	Uint(name string) (uint, error)
    20  	Uint64(name string) (uint64, error)
    21  	Duration(name string) (time.Duration, error)
    22  	Float64(name string) (float64, error)
    23  	String(name string) (string, error)
    24  	StringSlice(name string) ([]string, error)
    25  	IntSlice(name string) ([]int, error)
    26  	Int64Slice(name string) ([]int64, error)
    27  	Float64Slice(name string) ([]float64, error)
    28  	Generic(name string) (cli.Generic, error)
    29  	Bool(name string) (bool, error)
    30  
    31  	isSet(name string) bool
    32  }
    33  

View as plain text