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

Function telemetry_enabled_from

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

Source from the content-addressed store, hash-verified

329
330#[cfg(feature = "telemetry")]
331fn telemetry_enabled_from(value: Option<&str>) -> bool {
332 let value = value.unwrap_or("true");
333 !matches!(
334 value.trim().to_ascii_lowercase().as_str(),
335 "0" | "false" | "no" | "off"
336 )
337}
338
339#[cfg(feature = "telemetry")]
340fn telemetry_endpoint() -> Option<String> {

Callers 2

enabledFunction · 0.85
enabled_env_value_fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected