Skip to content

Commit ed3f3eb

Browse files
MAJOR CLEANUP: Simplify codebase structure
🧹 Removed redundant files and directories: - Sources/CCUsageMonitor/main-old.swift (old version) - homebrew/ directory (redundant, we have separate tap repo) - scripts/ directory (redundant installation scripts) - install/ directory (old installer) - docs/ directory (broken image references) - bin/ directory (redundant, merged with main) - Package.swift (not needed for direct Swift execution) 📁 New clean structure: - main.swift (single source file - 197 lines) - install.sh (updated for new structure) - README.md (updated references and line count) - LICENSE ✨ Benefits: - Single source of truth (main.swift) - No duplicate files or directories - Cleaner repository structure - Updated installation scripts - Easier maintenance and development
1 parent 715cdde commit ed3f3eb

14 files changed

Lines changed: 14 additions & 713 deletions

File tree

Package.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
> **Monitor your Claude API usage and reset time directly in your macOS menu bar**
99
10-
Built on the trusted [ccusage CLI tool](https://github.com/evanmschultz/ccusage), this ultra-lightweight **181-line Swift app** displays your **Claude usage percentage** and **reset countdown** without cluttering your workflow.
11-
12-
![CCUsage Monitor Menu](docs/ccusage-menu.png)
10+
Built on the trusted [ccusage CLI tool](https://github.com/evanmschultz/ccusage), this ultra-lightweight **197-line Swift app** displays your **Claude usage percentage** and **reset countdown** without cluttering your workflow.
1311

1412
![CCUsage Monitor Demo](https://img.shields.io/badge/Menu%20Bar%20Display-75%25%20%7C%202h%2015m-success?style=for-the-badge&logo=apple)
1513

@@ -24,7 +22,7 @@ Transform your **ccusage** terminal data for your **current active billing block
2422
- 🔄 **Auto-refresh every 30 seconds** - always current data
2523
- ⌨️ **Right-click menu** to toggle display options and refresh
2624
- 🏃‍♂️ **Auto-start on login** - enabled by default
27-
- 🪶 **Ultra-minimal** - just 181 lines of Swift code
25+
- 🪶 **Ultra-minimal** - just 197 lines of Swift code
2826

2927
## 📦 Installation - Claude API Usage Monitor Setup
3028

@@ -68,7 +66,7 @@ cd ccusage-monitor
6866

6967
```bash
7068
# Run directly from source (requires ccusage installed)
71-
swift bin/main.swift
69+
swift main.swift
7270
```
7371

7472
## 🔧 How Claude Usage Monitoring Works

Sources/CCUsageMonitor/main-old.swift

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)