mirror of
https://github.com/DominicBreuker/pspy.git
synced 2026-11-07 02:32:17 +00:00
switch to dep and integrate cobra
This commit is contained in:
1 parent
56f706b7e2
commit
c92dd9992f
88 files changed
+12470
-2288
No files matched your search
@@ -30,6 +30,10 @@ func NewInotify(ping chan struct{}) (*Inotify, error) {
|
||||
return i, nil
|
||||
}
|
||||
|
||||
func (i *Inotify) Start() {
|
||||
go watch(i)
|
||||
}
|
||||
|
||||
func (i *Inotify) Watch(dir string) error {
|
||||
w, err := newWatcher(i.fd, dir, i.ping)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user