How callowayproject/bump-my-version works
Main Components Identification
The system should be represented with these key components:
a) Core Version Management
• Version Parsing Engine
• Version Serialization Engine
• Version Bumping Logic
• Version Component Handler
b) Configuration Management
• Config File Handlers (TOML, YAML, CFG)
• Configuration Validation
• Version Format Specifications
c) File Operations
• File Search and Replace
• SCM Integration (Git)
• File Pattern Matching
d) CLI Interface
• Command Processing
• User Input Validation
• Output Formatting
Component Relationships
[CLI Interface] → [Configuration Management]
• ↓
[File Operations] ← [Core Version Management]
• ↓
[Source Control Management]
Detailed Component Breakdown
For each major component, include these subcomponents:
a) Core Version Management:
• Version Parser (versioning/conventions.py)
• Version Models (versioning/models.py)
• Version Functions (versioning/functions.py)
• Serialization Handler (versioning/serialization.py)
b) Configuration Management:
• Config Creator (config/create.py)
• Config Models (config/models.py)
• File Handlers (config/files.py)
• Legacy Support (config/files_legacy.py)
c) File Operations:
• File Handlers (files.py)
• Pattern Matching (utils.py)
• Hook System (hooks.py)
d) CLI Interface:
• Command Processors (cli.py)
• UI Components (ui.py)