mirror of
https://github.com/go-task/task.git
synced 2026-07-09 06:55:14 +00:00
update deps and moving from github.com/mvdan/sh to mvdan.cc/sh
This commit is contained in:
9
vendor/github.com/radovskyb/watcher/README.md
generated
vendored
9
vendor/github.com/radovskyb/watcher/README.md
generated
vendored
@@ -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:
|
||||
|
||||
2
vendor/github.com/radovskyb/watcher/watcher.go
generated
vendored
2
vendor/github.com/radovskyb/watcher/watcher.go
generated
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user