MCPcopy
hub / github.com/urfave/cli / ValueSource

Interface ValueSource

value_source.go:11–18  ·  value_source.go::ValueSource

ValueSource is a source which can be used to look up a value, typically for use with a cli.Flag

Source from the content-addressed store, hash-verified

9// ValueSource is a source which can be used to look up a value,
10// typically for use with a cli.Flag
11type ValueSource interface {
12 fmt.Stringer
13 fmt.GoStringer
14
15 // Lookup returns the value from the source and if it was found
16 // or returns an empty string and false
17 Lookup() (string, bool)
18}
19
20// EnvValueSource is to specifically detect env sources when
21// printing help text

Callers

nothing calls this directly

Implementers 6

staticValueSourcevalue_source_test.go
ValueSourceChainvalue_source.go
envVarValueSourcevalue_source.go
fileValueSourcevalue_source.go
mapSourcevalue_source.go
mapValueSourcevalue_source.go

Calls

no outgoing calls

Tested by

no test coverage detected