Documentation
¶
Overview ¶
Package watcher reports changes under a source tree, so the spec can be regenerated on save.
New walks the tree once and watches every directory in it, skipping the ones a scan would never read. It is best effort by design: when a watcher cannot be created the caller falls back to rescanning on demand, so the TUI stays usable on platforms and filesystems where watching does not work.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher reports Go-source changes under a directory tree as a coalesced stream of signals.
It watches every (non-vendored, non-hidden) directory in the tree - fsnotify is not recursive - and re-adds directories created at runtime so new packages are picked up. Bursts collapse into a single pending signal; the model debounces further before rescanning.