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:236–240 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
234
}
235
236
pub(crate) fn is_terminal() -> bool {
237
// Use a simple heuristic - check if we're in a CI environment
238
// or if stdin is piped
239
std::env::var(
"CI"
).is_err() && std::env::var(
"ATOMIC_NONINTERACTIVE"
).is_err()
240
}
Callers
1
get_message
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected