This commit introduces a new /core:clean command to clean up generated files, caches, and build artifacts. The command provides the following options: - /core:clean: Cleans all caches and build artifacts. - /core:clean --cache: Cleans caches only. - /core:clean --deps: Performs a dry-run for dependency cleanup. - /core:clean --deps --force: Deletes dependency directories after a confirmation prompt. - /core:clean --dry-run: Shows what would be deleted without performing any actions. The implementation includes safety features such as a "dry-run by default" for dependency cleaning and a confirmation prompt for destructive operations.
718 B
718 B
| name | description | args |
|---|---|---|
| clean | Clean up generated files, caches, and build artifacts | [--cache] [--deps [--force]] [--dry-run] |
Clean Project
Cleans up generated files, caches, and build artifacts for the project.
Usage
/core:clean- Clean all caches and build artifacts./core:clean --cache- Clean caches only./core:clean --deps- Dry-run dependency cleanup./core:clean --deps --force- Permanently delete dependencies (vendor,node_modules)./core:clean --dry-run- Show what would be deleted without actually deleting anything.
Action
This command executes the clean.sh script to perform the cleanup.
"${CLAUDE_PLUGIN_ROOT}/scripts/clean.sh" "$@"