Skip to main content

is_interactive

Function is_interactive 

Source
pub fn is_interactive() -> bool
Expand description

Whether a human is reading stdout, as opposed to a pipe, a file, an agent, or CI.

Deliberately distinct from decorate: NO_COLOR means “no color”, not “give me JSON”, so a user who sets it still gets human output, just uncolored.