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

Function is_remote

crates/chat-cli/src/util/system_info/mod.rs:177–180  ·  view source on GitHub ↗

Is the calling binary running on a remote instance

()

Source from the content-addressed store, hash-verified

175
176/// Is the calling binary running on a remote instance
177pub fn is_remote() -> bool {
178 // TODO(chay): Add detection for inside docker container
179 in_ssh() || in_wsl() || is_remote_fake()
180}
181
182pub fn in_codespaces() -> bool {
183 static IN_CODESPACES: OnceLock<bool> = OnceLock::new();

Callers 5

executeMethod · 0.85
try_device_authorizationFunction · 0.85
executeMethod · 0.85
upgrade_to_proFunction · 0.85
create_urlMethod · 0.85

Calls 3

in_sshFunction · 0.85
in_wslFunction · 0.85
is_remote_fakeFunction · 0.85

Tested by

no test coverage detected