Files
2025-08-13 18:47:31 +10:00

829 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. Enhancements

  • 3.1 Replace with jest-diff for professional diff output
  • 3.2 Improve file headers with status and statistics
  • 3.3 Add summary view with file counts and line changes

4. Testing

  • 4.1 Test diff generation for modified files
  • 4.2 Test handling of new files
  • 4.3 Test handling of deleted files
  • 4.4 Test interactive mode