MCPcopy
hub / github.com/helm/helm / envBoolOr

Function envBoolOr

pkg/cli/environment.go:181–191  ·  view source on GitHub ↗
(name string, def bool)

Source from the content-addressed store, hash-verified

179}
180
181func envBoolOr(name string, def bool) bool {
182 if name == "" {
183 return def
184 }
185 envVal := envOr(name, strconv.FormatBool(def))
186 ret, err := strconv.ParseBool(envVal)
187 if err != nil {
188 return def
189 }
190 return ret
191}
192
193func envIntOr(name string, def int) int {
194 if name == "" {

Callers 2

NewFunction · 0.85
TestEnvOrBoolFunction · 0.85

Calls 1

envOrFunction · 0.85

Tested by 1

TestEnvOrBoolFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…