How bodo-run/yek works
Main Components
a) Core Components:
• Input Processing System
• File Processing Pipeline
• Output Generation System
• Configuration Management
• Priority Management
b) Supporting Components:
• Git Integration
• Parallel Processing Engine
• Size/Token Management
Input Layer → Processing Layer → Output Layer
Specific Component Details
a) Input Layer:
• Directory Scanner (handles multiple input directories)
• GitIgnore Parser (integrates with .gitignore rules)
• Config Loader (handles yek.yaml/toml/json)
b) Processing Layer:
• File Filter System
• Binary File Detection
• Size/Token Limiter
• Pattern Matcher (ignore/unignore)
• Priority Engine
• Git History Analyzer
• Priority Rules Processor
• Parallel Processing Manager
c) Output Layer:
• Template Engine
• Output Handler
• File Writer
• Stream Manager
Key Relationships to Highlight
• How the configuration system (yek.yaml) influences multiple components
• Parallel processing flow
• Demonstrate how the priority system affects the final output order
• Git integration's influence on priority scoring
Implementation Details
• How config.rs interfaces with the main system
• Parallel.rs's role in processing
• Demonstrate how priority.rs affects file ordering
• Defaults.rs influence on system behavior
Special Notes
Unique aspects:
• Git history integration for priority
• Parallel processing for performance
• Flexible configuration system
• Stream vs. file output handling
Remember to include the performance optimization aspects, as the README emphasizes the tool's speed as a key feature, being 230x faster than alternatives.