MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_terminal

Function is_terminal

atomic-cli/src/commands/record/command.rs:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127pub(crate) fn is_terminal() -> bool {
128 // Use a simple heuristic - check if we're in a CI environment
129 // or if stdin is piped
130 std::env::var("CI").is_err() && std::env::var("ATOMIC_NONINTERACTIVE").is_err()
131}

Callers 1

get_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected