(w *fsnotify.Watcher)
| 153 | } |
| 154 | |
| 155 | func closeOnInterrupt(w *fsnotify.Watcher) { |
| 156 | ch := make(chan os.Signal, 1) |
| 157 | signal.Notify(ch, os.Interrupt, syscall.SIGTERM) |
| 158 | go func() { |
| 159 | <-ch |
| 160 | w.Close() |
| 161 | os.Exit(0) |
| 162 | }() |
| 163 | } |
| 164 | |
| 165 | func (e *Executor) registerWatchedDirs(w *fsnotify.Watcher, calls ...*Call) error { |
| 166 | files, err := e.collectSources(calls) |
no test coverage detected
searching dependent graphs…