Files
OpenSpec/openspec/changes/add-diff-command/tasks.md
T

628 B

Implementation Tasks

1. Core Implementation

  • 1.1 Create src/core/diff.ts with diff logic
  • 1.2 Implement change directory scanning
  • 1.3 Implement file comparison using unified diff format
  • 1.4 Add color support for terminal output

2. CLI Integration

  • 2.1 Add diff command to src/cli/index.ts
  • 2.2 Implement interactive change selection when no argument provided
  • 2.3 Add error handling for missing changes

3. Testing

  • 3.1 Test diff generation for modified files
  • 3.2 Test handling of new files
  • 3.3 Test handling of deleted files
  • 3.4 Test interactive mode