Documentation
¶
Overview ¶
Package watch is the host-side half of `m watch` (spec §3.1, §9): a save triggered inner loop that re-runs the engine-neutral checks (lint, fmt) on changed files. The run half (compile/test/coverage) is a later, engine-bound stage (4.2) — this package never executes M.
It polls file signatures rather than using inotify/fsnotify, keeping the dependency footprint at zero (minimal-SBOM posture) and staying trivially cross-platform. Polling a dev working set is cheap; fsnotify is a possible future optimization for very large trees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lister ¶
Lister returns the current set of files to watch (re-evaluated each scan, so newly created files are picked up).
type Watcher ¶
Watcher polls the files from List every Interval and reports changes.