mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
1.2 KiB
1.2 KiB
CLI Status Command Specification
Purpose
The status command shows which OpenSpec changes are ready to archive by displaying task completion status for each change.
Command Interface
# Show status of all changes
openspec status
Behavior
WHEN the status command runs:
- Scan the
openspec/changes/directory - Skip the
archive/subdirectory - For each change directory with a
tasks.mdfile:- Count tasks marked with
[x](case-insensitive) - Count tasks marked with
[ ] - Display the change name and completion status
- Count tasks marked with
Output Format
add-auth-feature: 15/15
fix-payment-bug: 8/8
refactor-api: 3/10
update-docs: 0/5
Or with checkmark for fully complete:
add-auth-feature: ✓
fix-payment-bug: ✓
refactor-api: 3/10
update-docs: 0/5
Task Detection
The command recognizes these patterns as tasks:
- [ ]Incomplete task- [x]Complete task (lowercase)- [X]Complete task (uppercase)
Error Handling
- If no
tasks.mdexists, skip that change - If
tasks.mdis empty or has no tasks, skip that change - Continue scanning even if individual files have errors
Exit Codes
0: Success - status displayed1: Error - unable to scan changes directory