MCPcopy
hub / github.com/crowdsecurity/crowdsec / LoadFeatureFlagsEnv

Function LoadFeatureFlagsEnv

pkg/csconfig/fflag.go:14–16  ·  view source on GitHub ↗

LoadFeatureFlagsEnv parses the environment variables to enable feature flags.

(logger *log.Logger)

Source from the content-addressed store, hash-verified

12
13// LoadFeatureFlagsEnv parses the environment variables to enable feature flags.
14func LoadFeatureFlagsEnv(logger *log.Logger) error {
15 return fflag.Crowdsec.SetFromEnv(logger)
16}
17
18// FeatureFlagsFileLocation returns the path to the feature.yaml file.
19// The file is in the same directory as config.yaml, which is provided

Callers 2

mainFunction · 0.92
NewCommandMethod · 0.92

Calls 1

SetFromEnvMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…