Skip to content
/ watcher Public

A simple directory/file watcher that executes a command when a file is changed

Notifications You must be signed in to change notification settings

vahe/watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

watcher

Watches a directory and runs command when a watched file is changed.

go get github.com/vahe/watcher
Simple usage

To watch current directory for changes, then compile and run project when a file changes, simply run:

watcher -cmd="go install && prescious_binary"

For more info see usage below (or read source):

  -cmd string
      command to run when an event occurs
  -exclude string
      directory name(s) to exclude (comma separated) (default ".git")
  -init
      execute command immidiately (does not wait for first change event) (default true)
  -r  watch directory recursively (default true)
  -wait
      wait for command to finish running
  -watch string
      directory to watch (default "./")

About

A simple directory/file watcher that executes a command when a file is changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages