MCPcopy
hub / github.com/cortexlabs/cortex / MustBoolFromEnvOrFile

Function MustBoolFromEnvOrFile

pkg/lib/configreader/bool.go:207–213  ·  view source on GitHub ↗
(envVarName string, filePath string, v *BoolValidation)

Source from the content-addressed store, hash-verified

205}
206
207func MustBoolFromEnvOrFile(envVarName string, filePath string, v *BoolValidation) bool {
208 val, err := BoolFromEnvOrFile(envVarName, filePath, v)
209 if err != nil {
210 exit.Panic(err)
211 }
212 return val
213}

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
BoolFromEnvOrFileFunction · 0.85

Tested by

no test coverage detected