Skip to content

Commit

Permalink
added startcmd flag to run command before watching starts
Browse files Browse the repository at this point in the history
  • Loading branch information
radovskyb committed Aug 10, 2017
1 parent a04e8d7 commit 6a2d149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,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:
Expand Down
2 changes: 2 additions & 0 deletions cmd/watcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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 be simply called by itself:
Expand Down

0 comments on commit 6a2d149

Please sign in to comment.