Monitor file changes and execute custom commands for each event.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/guardian
.travis.yml
LICENSE
README.md
cli.go
cli_test.go
guardian.go
guardian_test.go
handler.go
handler_test.go
version.go

README.md

Guardian Build Status

Monitor file changes and execute custom commands for each event. This tool supports cross-platform file system notifications by using fsnotify.

Usage

$ guardian -create "echo %e %p" /path/to/monitor [...]

guardian monitors file recursively and execute custom commands for each event.

Placeholder

You can use placeholder in command arguments. %e will be replace by event name, %p will be replace by path name.

Events

  • CREATE
  • WRITE
  • CHMOD
  • REMOVE
  • RENAME

License

MIT

Author

monochromegane