Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkAllFiles ¶
WalkAllFiles walks the repository and returns relative paths of ALL files, respecting excluded dirs and .gitignore rules, but NOT filtering by extension. This is used by the file document indexer to find config, Blade, and SQL files that are not covered by tree-sitter parsing.
func WalkSourceFiles ¶
WalkSourceFiles walks the repo root and returns relative paths of all watchable source files, respecting excluded dirs and .gitignore rules. Unlike WalkExisting(), this does NOT require an fsnotify watcher allocation. (L4)
func WalkSourceFilesUnder ¶
WalkSourceFilesUnder walks a specific directory (which must be inside repoRoot) and returns relative paths (relative to repoRoot) of all watchable source files, respecting excluded dirs and .gitignore rules. Unlike WalkSourceFiles, this only walks the subtree rooted at walkDir.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher monitors filesystem changes and emits deduplicated FileEvents
func (*Watcher) Stop ¶
Stop gracefully shuts down the watcher. It is safe to call Stop() multiple times — only the first call takes effect (C15).
func (*Watcher) WalkExisting ¶
WalkExisting walks the repo and returns all existing watchable file paths. This is useful for initial indexing. M15: follows symlinks with cycle detection for consistent symlink handling.