Adds a new command `/core:status` to display the status of all repositories in a formatted table. The command provides the following features: - Displays module name, branch, clean/dirty status, and ahead/behind counts. - Supports filtering for dirty repositories with the `--dirty` flag. - Supports filtering for repositories behind remote with the `--behind` flag. - Includes a summary line with counts of dirty, behind, and clean repositories. This is implemented by wrapping the existing `core dev health` command with a new script that handles formatting and filtering.
19 lines
445 B
Markdown
19 lines
445 B
Markdown
---
|
|
name: /core:status
|
|
description: Show status across all Host UK repos
|
|
hooks:
|
|
AfterToolConfirmation:
|
|
- hooks:
|
|
- type: command
|
|
command: "${CLAUDE_PLUGIN_ROOT}/scripts/status.sh"
|
|
---
|
|
|
|
# Repo Status
|
|
|
|
A quick command to show the status across all Host UK repos.
|
|
|
|
## Usage
|
|
|
|
`/core:status` - Show all repo statuses
|
|
`/core:status --dirty` - Only show repos with changes
|
|
`/core:status --behind` - Only show repos behind remote
|