tokmd-scan
Tokei-backed scan adapter for tokmd.
Problem
Raw scanning and config translation should live behind one boundary instead of leaking into model or formatting code.
What it gives you
scanscan_in_memoryconfig_from_scan_optionsnormalize_in_memory_pathsInMemoryFileMaterializedScan
API / usage notes
scanwrapstokeiand returns aLanguagesmap for host paths.scan_in_memorywrites logical inputs into a temporary root and keeps the logical paths alive for downstream model code.config_from_scan_optionsmapsScanOptionsintotokei::Config.src/roots.rs,src/path/, and their tests are the canonical reference for root validation and caller-facing report path rebasing.src/walk/git.rsowns git-backed listing, subprocess environment scrubbing, and tracked-file path bounding for repository walks.src/lib.rsremains the public scan facade and ignore-handling reference.
Go deeper
- Tutorial: tokmd README
- How-to: Troubleshooting
- Reference: src/lib.rs
- Reference: src/roots.rs
- Reference: src/walk/git.rs
- Explanation: Architecture