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

Function EnvVars

value_source.go:134–142  ·  value_source.go::EnvVars

EnvVars is a helper function to encapsulate a number of envVarValueSource together as a ValueSourceChain

(keys ...string)

Source from the content-addressed store, hash-verified

132// EnvVars is a helper function to encapsulate a number of
133// envVarValueSource together as a ValueSourceChain
134func EnvVars(keys ...string) ValueSourceChain {
135 vsc := ValueSourceChain{Chain: []ValueSource{}}
136
137 for _, key := range keys {
138 vsc.Chain = append(vsc.Chain, EnvVar(key))
139 }
140
141 return vsc
142}
143
144// fileValueSource encapsulates a ValueSource from a file
145type fileValueSource struct {

Calls 1

EnvVarFunction · 0.85