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.
25 lines
718 B
Markdown
25 lines
718 B
Markdown
---
|
|
name: clean
|
|
description: Clean up generated files, caches, and build artifacts
|
|
args: "[--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.
|
|
|
|
```bash
|
|
"${CLAUDE_PLUGIN_ROOT}/scripts/clean.sh" "$@"
|
|
```
|