MCPcopy 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
137pub(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_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected