Add sync command that: - Finds dependent modules from repos.yaml - Updates composer.json with new version - Supports --dry-run for preview - Auto-detects current module from directory Migrated from core-claude PR #63. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
454 B
Markdown
23 lines
454 B
Markdown
---
|
|
name: sync
|
|
description: Sync changes across dependent modules
|
|
args: <module_name> [--dry-run]
|
|
---
|
|
|
|
# Sync Dependent Modules
|
|
|
|
When changing a base module, this command syncs the dependent modules.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/code:sync # Sync all dependents of current module
|
|
/code:sync core-tenant # Sync specific module
|
|
/code:sync --dry-run # Show what would change
|
|
```
|
|
|
|
## Action
|
|
|
|
```bash
|
|
"${CLAUDE_PLUGIN_ROOT}/scripts/sync.sh" "$@"
|
|
```
|