MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / env_bool

Function env_bool

src/config.rs:227–229  ·  view source on GitHub ↗

Reads a `TRACEDECAY_ ` env var and parses it as a bool.

(suffix: &str)

Source from the content-addressed store, hash-verified

225
226/// Reads a `TRACEDECAY_<suffix>` env var and parses it as a bool.
227pub(crate) fn env_bool(suffix: &str) -> Option<bool> {
228 brand_env(suffix).as_deref().and_then(parse_env_bool)
229}
230
231/// Reads a `TRACEDECAY_<suffix>` env var and parses it as an integer of the
232/// caller's choosing.

Callers 2

with_env_overridesMethod · 0.85

Calls 1

brand_envFunction · 0.85

Tested by

no test coverage detected