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

Method LookupWithSource

value_source.go:94–102  ·  value_source.go::ValueSourceChain.LookupWithSource
()

Source from the content-addressed store, hash-verified

92}
93
94func (vsc *ValueSourceChain) LookupWithSource() (string, ValueSource, bool) {
95 for _, src := range vsc.Chain {
96 if value, found := src.Lookup(); found {
97 return value, src, true
98 }
99 }
100
101 return "", nil, false
102}
103
104// envVarValueSource encapsulates a ValueSource from an environment variable
105type envVarValueSource struct {

Callers 5

LookupMethod · 0.95
PostParseMethod · 0.80
PostParseMethod · 0.80
TestEnvVarsFunction · 0.80
TestFilePathsFunction · 0.80

Calls 1

LookupMethod · 0.65

Tested by 2

TestEnvVarsFunction · 0.64
TestFilePathsFunction · 0.64