MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / is_telemetry_disabled

Function is_telemetry_disabled

crates/chat-cli/src/util/env_var.rs:23–25  ·  view source on GitHub ↗

Check if telemetry is disabled

()

Source from the content-addressed store, hash-verified

21
22/// Check if telemetry is disabled
23pub fn is_telemetry_disabled() -> bool {
24 Env::new().get_os(Q_DISABLE_TELEMETRY).is_some()
25}
26
27/// Get mock chat response for testing
28pub fn get_mock_chat_response(env: &Env) -> Option<String> {

Callers 1

newMethod · 0.85

Calls 1

get_osMethod · 0.45

Tested by

no test coverage detected