Documentation
¶
Overview ¶
Package watch polls corpus directories for changes and re-runs brain/index.
Port of the former bin/kb-watch bash script to an importable, testable Go package. Polls file mtimes (no inotify deps); cheap and reliable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Dirs []string
Interval time.Duration
// IndexCmd is the index command template. %s is replaced by the repo
// root (from KB_ROOT). Defaults to `python3 <root>/bin/kb/index --with-mail`.
IndexCmd string
}
Options controls the polling loop. Zero value uses defaults.
Click to show internal directories.
Click to hide internal directories.