Skip to content

feat: add zenith clean command for cache management#80

Open
zubeyralmaho wants to merge 1 commit intojotform:masterfrom
zubeyralmaho:feat/clean-command
Open

feat: add zenith clean command for cache management#80
zubeyralmaho wants to merge 1 commit intojotform:masterfrom
zubeyralmaho:feat/clean-command

Conversation

@zubeyralmaho
Copy link

Adds a new zenith clean command for cleaning build caches.

Changes

  • Created CleanRunner class in src/commands/clean/
  • Supports --all flag to clean all caches
  • Supports --project flag for specific project cache
  • Added unit tests

Usage

zenith clean --all
zenith clean --project my-app

- Add `zenith clean` command to clean build cache
- Show cache statistics (size, files, projects)
- Support --all flag to clean entire cache
- Support --dry-run flag to preview what would be deleted
- Support --project flag to clean specific project cache
- Uses dynamic imports to allow running without zenith.json
- Add unit tests for CleanRunner

Also includes:
- Init command from feat/init-command branch
- Refactored run.ts to use dynamic imports throughout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant