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

Function in_codespaces

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

Check if running in Codespaces

()

Source from the content-addressed store, hash-verified

41
42/// Check if running in Codespaces
43pub fn in_codespaces() -> bool {
44 let env = Env::new();
45 env.get_os(CODESPACES).is_some() || env.get_os(Q_CODESPACES).is_some()
46}
47
48/// Check if running in CI
49pub fn in_ci() -> bool {

Callers 1

newMethod · 0.50

Calls 1

get_osMethod · 0.45

Tested by

no test coverage detected