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

Method Lookup

value_source.go:37–37  ·  value_source.go::MapSource.Lookup

Lookup returns the value from the source based on key and if it was found or returns an empty string and false

(string)

Source from the content-addressed store, hash-verified

35 // and if it was found
36 // or returns an empty string and false
37 Lookup(string) (any, bool)
38}
39
40// ValueSourceChain contains an ordered series of ValueSource that

Callers 5

TestEnvVarValueSourceFunction · 0.65
TestFileValueSourceFunction · 0.65
TestMapValueSourceFunction · 0.65
LookupWithSourceMethod · 0.65
LookupMethod · 0.65

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 3

TestEnvVarValueSourceFunction · 0.52
TestFileValueSourceFunction · 0.52
TestMapValueSourceFunction · 0.52