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

Method GetEnvVars

flag_impl.go:265–267  ·  view source on GitHub ↗

GetEnvVars returns the env vars for this flag

()

Source from the content-addressed store, hash-verified

263
264// GetEnvVars returns the env vars for this flag
265func (f *FlagBase[T, C, V]) GetEnvVars() []string {
266 return f.Sources.EnvKeys()
267}
268
269// TakesValue returns true if the flag takes a value, otherwise false
270func (f *FlagBase[T, C, V]) TakesValue() bool {

Callers

nothing calls this directly

Calls 1

EnvKeysMethod · 0.80

Tested by

no test coverage detected