You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extended styles.py to provide semantic style definitions and helper
functions for consistent formatting throughout jgo. This eliminates
~100+ hardcoded style occurrences across 18 files and enables users
to customize all UI elements via configuration.
Changes:
- Added 9 semantic style keys to DEFAULT_STYLES: error, critical,
warning, filename, header, syntax, action, secondary, domain
- Created 9 helper functions: error(), critical(), warning(),
filepath(), header(), syntax(), action(), secondary(), domain(), tip()
- Added pre-formatted string constants for common patterns:
JGO_TOML, JGO_LOCK_TOML, JGO_CONF_GLOBAL, PLUS_OPERATOR,
AT_MAINCLASS, DOUBLE_DASH, MAVEN_COORDINATES, MAVEN_REPOSITORIES,
TIP_DRY_RUN
- Refactored 15 command files and 3 core modules to use centralized
styles instead of inline markup
- Standardized section headers to "bold cyan" style for consistency
- Fixed malformed close tag [/cyan] → [/] in config.py
- Updated test expectations in wrap.t for new header style
Benefits:
- Single source of truth for all UI styling
- Consistent appearance across all commands and output
- All styles now customizable via [styles] section in config
- Easier maintenance and future style updates
- More readable code with semantic helper functions
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
0 commit comments