We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61943e0 commit 619536eCopy full SHA for 619536e
support/pm.go
@@ -149,7 +149,20 @@ func (pm *PM) watch(svc *service) *Batcher {
149
fmt.Println(err)
150
}
151
152
- watcher.Add(svc.Chdir)
+ var dirs []string
153
+ err = filepath.Walk(svc.Chdir, func(path string, info os.FileInfo, err error) error {
154
+ if info.IsDir() {
155
+ dirs = append(dirs, path)
156
+ }
157
+ return nil
158
+ })
159
+
160
+ for _, dir := range dirs {
161
+ err = watcher.Add(dir)
162
+ if err != nil {
163
+ fmt.Println(err)
164
165
166
167
go func() {
168
for {
0 commit comments