MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / enabled_env_value_from

Function enabled_env_value_from

crates/openshell-core/src/telemetry.rs:322–328  ·  view source on GitHub ↗
(value: Option<&str>)

Source from the content-addressed store, hash-verified

320
321#[cfg(feature = "telemetry")]
322fn enabled_env_value_from(value: Option<&str>) -> &'static str {
323 if telemetry_enabled_from(value) {
324 "true"
325 } else {
326 "false"
327 }
328}
329
330#[cfg(feature = "telemetry")]
331fn telemetry_enabled_from(value: Option<&str>) -> bool {

Callers 1

enabled_env_valueFunction · 0.85

Calls 1

telemetry_enabled_fromFunction · 0.85

Tested by

no test coverage detected