MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / Start

Method Start

internal/prd/progress.go:115–131  ·  view source on GitHub ↗

Start begins watching for progress.md changes.

()

Source from the content-addressed store, hash-verified

113
114// Start begins watching for progress.md changes.
115func (w *ProgressWatcher) Start() error {
116 w.mu.Lock()
117 if w.running {
118 w.mu.Unlock()
119 return nil
120 }
121 w.running = true
122 w.mu.Unlock()
123
124 // Watch the directory so we catch creates and writes
125 if err := w.watcher.Add(w.dir); err != nil {
126 return err
127 }
128
129 go w.processEvents()
130 return nil
131}
132
133// Stop stops watching.
134func (w *ProgressWatcher) Stop() {

Callers

nothing calls this directly

Calls 1

processEventsMethod · 0.95

Tested by

no test coverage detected