MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / init_watcher

Function init_watcher

crates/opencode-watcher/src/lib.rs:219–222  ·  view source on GitHub ↗
(config: WatcherConfig)

Source from the content-addressed store, hash-verified

217}
218
219pub fn init_watcher(config: WatcherConfig) -> Arc<FileWatcher> {
220 let watcher = Arc::new(FileWatcher::new(config).expect("Failed to create file watcher"));
221 FILE_WATCHER.get_or_init(|| watcher.clone()).clone()
222}
223
224#[cfg(test)]
225mod tests {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected