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

Method in_ssh

crates/chat-cli/src/os/env.rs:152–154  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

150 }
151
152 pub fn in_ssh(&self) -> bool {
153 self.get("SSH_CLIENT").is_ok() || self.get("SSH_CONNECTION").is_ok() || self.get("SSH_TTY").is_ok()
154 }
155
156 pub fn in_codespaces(&self) -> bool {
157 self.get_os("CODESPACES").is_some() || self.get_os("Q_CODESPACES").is_some()

Callers 1

in_sshFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected