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

Method EnvKeys

value_source.go:57–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (vsc *ValueSourceChain) EnvKeys() []string {
58 vals := []string{}
59
60 for _, src := range vsc.Chain {
61 if v, ok := src.(EnvValueSource); ok && v.IsFromEnv() {
62 vals = append(vals, v.Key())
63 }
64 }
65
66 return vals
67}
68
69func (vsc *ValueSourceChain) String() string {
70 s := []string{}

Callers 4

TestZeroValueSourceChainFunction · 0.95
GetEnvVarsMethod · 0.80
GetEnvVarsMethod · 0.80

Calls 2

IsFromEnvMethod · 0.65
KeyMethod · 0.65

Tested by 2

TestZeroValueSourceChainFunction · 0.76