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

Function in_ssh

crates/chat-cli/src/util/system_info/mod.rs:151–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151pub fn in_ssh() -> bool {
152 static IN_SSH: OnceLock<bool> = OnceLock::new();
153 *IN_SSH.get_or_init(|| Env::new().in_ssh())
154}
155
156/// Test if the program is running under WSL
157pub fn in_wsl() -> bool {

Callers 2

newMethod · 0.85
is_remoteFunction · 0.85

Calls 1

in_sshMethod · 0.80

Tested by

no test coverage detected