astral-sh/uv
uv-console
crates/uv-console/ is uv's terminal interaction layer — color management, progress bars,
prompts, and detection of "is this a TTY?".
Purpose
uv's CLI output adapts to its environment: full colors and progress bars in an interactive
terminal, plain text under CI=true, and JSON for --output-format json. Centralizing the
detection and rendering avoids subtle inconsistencies across commands.
Key abstractions
Terminal::detect()— distinguishes TTY / pipe / dumb-terminal.- Colored output helpers built on
anstream. - Progress reporters (delegated to
indicatif). - Prompt helpers for
uv auth loginand similar interactive flows.
See also
uv-loggingfortracingintegration.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.