update deps and moving from github.com/mvdan/sh to mvdan.cc/sh

This commit is contained in:
Andrey Nering
2017-09-02 11:19:00 -03:00
parent 72bfd94329
commit 2b2852aad7
28 changed files with 293 additions and 86 deletions

View File

@@ -8,10 +8,15 @@
Events contain the `os.FileInfo` of the file or directory that the event is based on and the type of event and file or directory path.
[Installation](#installation)
[Features](#features)
[Example](#example)
[Contributing](#contributing)
[Watcher Command](#command)
# Update
Event.Path for Rename and Move events is now returned in the format of `fromPath -> toPath`
#### Chmod event is not supported under windows.
# Installation
@@ -133,6 +138,8 @@ Usage of watcher:
pipe event's info to command's stdin
-recursive
watch folders recursively (default true)
-startcmd
run the command when watcher starts
```
All of the flags are optional and watcher can also be called by itself:

View File

@@ -57,7 +57,7 @@ func (e Op) String() string {
return "???"
}
// An Event desribes an event that is received when files or directory
// An Event describes an event that is received when files or directory
// changes occur. It includes the os.FileInfo of the changed file or
// directory and the type of event that's occurred and the full path of the file.
type Event struct {