codepulse-0.2.0 is not a library.
codepulse
A Rust CLI tool that measures the heartbeat of your codebase—analyzing git history to visualize lines of code over time.
Features
- Analyzes any git repository
- Weekly aggregation for clear trends
- Shows two metrics:
- Blue bars: Lines of code added each week
- Green line: Total lines of code (running total)
- Outputs a PNG chart
Installation
The binary will be at target/release/codepulse.
Usage
Options
| Option | Short | Description | Default |
|---|---|---|---|
--repo |
-r |
Path to the git repository | Current directory |
--output |
-o |
Output PNG file path | <folder-name>_loc.png |
--title |
-t |
Chart title | Folder name |
Examples
# Analyze current directory with all defaults
# Analyze a specific repository
# Custom title and output file
# Full customization
Testing Locally
Create a test repository:
&&
&& &&
&& &&
&& &&
Run the analyzer:
# From within the repo (uses defaults)
# Or specify the path
Output
The chart shows:
- Left Y-axis (blue): Lines added each week
- Right Y-axis (green): Total lines of code
- Blue bars: Weekly code additions
- Green line + area: Running total of all code
License
MIT