feat: add incremental file scan state with optional --rescan full run

This commit is contained in:
2026-04-17 19:51:07 +02:00
parent c8d4128b79
commit 1583871cf9
5 changed files with 153 additions and 59 deletions
+4
View File
@@ -38,9 +38,13 @@ mdlink .
- `--timeout FLOAT`
Per-request timeout in seconds (default: `10.0`).
- `--rescan`
Discard `.mdlink-state.json` and run a full scan on all matching files.
- `--check CODE`
Report only selected HTTP status codes. Repeat option for multiple codes (for example `--check 404` or `--check 301 --check 404`).
By default, `mdlink` stores scanned file paths in `.mdlink-state.json` and skips those files in later runs.
## Interactive Redirect Rewrite
Step 1: When a Markdown link redirects, `mdlink` prompts: