mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
685 B
685 B
Add Diff Command to OpenSpec CLI
Why
Developers need to easily view differences between proposed spec changes and current specs without manually comparing files.
What Changes
- Add
openspec diff [change-name]command that shows differences between change specs and current specs - Compare files in
changes/[change-name]/specs/with corresponding files inspecs/ - Display unified diff output showing added/removed/modified lines
- Support colored output for better readability
Impact
- Affected specs: New capability
cli-diffwill be added - Affected code:
src/cli/index.ts- Add diff commandsrc/core/diff.ts- New file with diff logic (~80 lines)