Expand description
Logging and progress display utilities.
This module provides structured logging for Ralph’s pipeline:
Loggerstruct for consistent, colorized output- Progress bar display
- Section headers and formatting
- Colors & Formatting for terminal output
- Test utilities for capturing log output in tests
Structs§
- Colors
- ANSI color codes
- Logger
- Logger for Ralph output.
- Real
Color Environment - Real environment implementation for production use.
Constants§
- ARROW
- Icons for output
- BOX_BL
- BOX_BR
- BOX_H
- BOX_TL
- Box-drawing characters for visual structure
- BOX_TR
- BOX_V
- CHECK
- CROSS
- INFO
- WARN
Traits§
- Color
Environment - Environment abstraction for color detection.
- Loggable
- Trait for logger output destinations.
Functions§
- argv_
requests_ json - Detect if command-line arguments request JSON output.
- colors_
enabled - Check if colors should be enabled.
- colors_
enabled_ with_ env - Check if colors should be enabled using the provided environment.
- format_
generic_ json_ for_ display - Format generic JSON output for display.
- print_
progress - Print a progress bar with percentage and counts.