mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
switch to dep and integrate cobra
This commit is contained in:
@@ -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