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