myspellchecker.utils.console module provides Rich-based terminal formatting used by the CLI. It includes custom themes for Myanmar text, pre-built table and panel formatters for spell checking output, and helper functions for consistent console styling.
Overview
Theme System
MYSPELL_THEME
Custom Rich theme with styles for Myanmar spell checking:Using the Theme
Error Formatting
ERROR_STYLES
Mapping from error types to theme style names:ERROR_ICONS
Unicode icons for error types:Table Functions
create_error_table
Creates a formatted table for displaying spelling errors:create_stats_table
Creates a statistics summary table:Custom Suggestion Display
To display suggestions, create a custom table:Panel Functions
create_summary_panel
Creates a summary panel for spell check results:create_build_header_panel
Creates a header panel for build operations:PipelineConsole
Console wrapper for pipeline output with Rich formatting (colors disabled for structured output). Constructed withPipelineConsole(force_plain=False).
Step Tracking
Schema and Statistics
Pipeline-Specific Panels
Message Methods
CLI Output Examples
Standard Check Output
Build Progress Output
Integration with argparse CLI
The console utilities integrate with the argparse-based CLI commands:Configuration
Console Settings
Environment Variables
| Variable | Description | Default |
|---|---|---|
NO_COLOR | Disable color output (standard convention) | not set |
FORCE_COLOR | Force color output even when not a TTY | not set |
See Also
- CLI Reference - Command-line interface guide
- Configuration Guide - Configuration options
- Logging Guide - Logging configuration