--watch mode #7

Closed
opened 2026-06-16 14:48:07 +00:00 by GKaszewski · 0 comments
Owner

What to build

Add a --watch flag that monitors the source directory for file changes and regenerates diagrams automatically. Uses filesystem notifications (e.g. notify crate) to detect changes and re-runs the analysis pipeline.

Debounce rapid changes (e.g. 500ms) to avoid redundant regeneration during batch saves.

Acceptance criteria

  • --watch flag keeps the process running and watches for file changes
  • Re-generates output on source file changes (create, modify, delete)
  • Debounces rapid changes
  • Works with both --output (file) and stdout modes
  • Prints a status line when regenerating
  • Ctrl+C exits cleanly

Blocked by

None - can start immediately

## What to build Add a `--watch` flag that monitors the source directory for file changes and regenerates diagrams automatically. Uses filesystem notifications (e.g. `notify` crate) to detect changes and re-runs the analysis pipeline. Debounce rapid changes (e.g. 500ms) to avoid redundant regeneration during batch saves. ## Acceptance criteria - [ ] `--watch` flag keeps the process running and watches for file changes - [ ] Re-generates output on source file changes (create, modify, delete) - [ ] Debounces rapid changes - [ ] Works with both `--output` (file) and stdout modes - [ ] Prints a status line when regenerating - [ ] Ctrl+C exits cleanly ## Blocked by None - can start immediately
GKaszewski added the P4 label 2026-06-17 06:46:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/archlens#7