How knuspii/crunchycleaner works
CrunchyCleaner is a cross-platform CLI/TUI for finding and removing software caches and temporary files. The principal workflow is to identify existing cache locations, show them for selection (or select all in automated mode), then clean selected paths or report what would be cleaned in dry-run mode. The excerpts show the cache catalog, scanning and filesystem helpers, and parts of the UI and cleanup logic; some wiring between startup and scanning is omitted, so that link is documented rather than source-verified.
Main entry points: cc_main.go CLI and TUI · cc_funcs.go Cache scanning · cc_caches.go Cache catalog
Components 8
User workflow
- CLI and TUI
cc_main.go - Cleanup orchestration
cc_main.go
Cache discovery
- Cache catalog
cc_caches.go - Cache scanning
cc_funcs.go
Cleanup runtime
- Path and file operations
cc_funcs.go - Disk metrics
cc_funcs.go
Other components
- User
- Keyboard input
Connections 9
- User → CLI and TUI: starts tool
README.md - CLI and TUI → Cache catalog: offers cache choices
README.md - Cache scanning → Cache catalog: loads paths
cc_funcs.go - CLI and TUI → Cache scanning: scans caches
- CLI and TUI → Cleanup orchestration: starts cleanup
cc_main.go - Cleanup orchestration → Path and file operations: matches and deletes
cc_main.go - CLI and TUI → Path and file operations: sizes paths
cc_main.go - CLI and TUI → Disk metrics: reads metrics
cc_main.go - Keyboard input → CLI and TUI: provides keys
cc_main.go