Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
151
pub 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
157
pub fn in_wsl() -> bool {
Callers
2
new
Method · 0.85
is_remote
Function · 0.85
Calls
1
in_ssh
Method · 0.80
Tested by
no test coverage detected