Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ is_terminal
Function
is_terminal
atomic-cli/src/commands/record/command.rs:160–164 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
158
}
159
160
pub(crate) fn is_terminal() -> bool {
161
// Use a simple heuristic - check if we're in a CI environment
162
// or if stdin is piped
163
std::env::var(
"CI"
).is_err() && std::env::var(
"ATOMIC_NONINTERACTIVE"
).is_err()
164
}
Callers
1
get_message
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected