Expand description
§tokmd-scan
Tier 1 (Adapter)
This crate adapts the tokei library for use within tokmd.
It isolates the dependency on tokei to a single location.
§What belongs here
- Tokei configuration and invocation
- Mapping
tokmdargs totokeiconfig
§What does NOT belong here
- Business logic (filtering, sorting, aggregation)
- Output formatting
- Receipt construction
Structs§
- InMemory
File - A single logical file supplied from memory rather than the host filesystem.
- Materialized
Scan - A scan result that keeps its backing temp root alive for downstream row modeling.
Functions§
- config_
from_ scan_ options - Build the
tokeiconfig used for a scan from clap-freeScanOptions. - normalize_
in_ memory_ paths - Normalize ordered in-memory inputs into deterministic logical paths.
- scan
- Scans a set of paths and computes line counts for each language found.
- scan_
in_ memory