Skip to content

feat: add watch mode for automatic re-parsing on file changes#2

Open
treejamie wants to merge 1 commit intomainfrom
watch
Open

feat: add watch mode for automatic re-parsing on file changes#2
treejamie wants to merge 1 commit intomainfrom
watch

Conversation

@treejamie
Copy link
Owner

Summary

  • Add -w/--watch flag that monitors PDF files and automatically re-parses on changes
  • Uses fswatch on macOS, inotifywait on Linux
  • Docker image includes inotify-tools by default
  • Shows timestamp on each parse for easy tracking

Usage

# Local (requires fswatch: brew install fswatch)
./parse -w resume.pdf

# Docker (works out of the box)
docker run --rm -v ~/Desktop:/data parsepdf -w resume.pdf

Test plan

  • Run ./parse -w with a PDF and verify initial parse occurs
  • Modify the PDF file and verify automatic re-parse triggers
  • Test Docker watch mode with mounted volume
  • Verify Ctrl+C cleanly stops the watcher

🤖 Generated with Claude Code

Add -w/--watch flag that monitors the PDF file and automatically
re-parses whenever it's modified. Useful for iterating on CV designs.

- Uses fswatch on macOS, inotifywait on Linux
- Docker image includes inotify-tools by default
- Shows timestamp on each parse for easy tracking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant