Skip to content

jairov4/watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watcher

Generic wrapper that monitors the filesystem and restart a program on change.

Inspired in https://github.com/radovskyb/watcher

Usage

> watcher -h

Usage of ./watcher:
  -cmd string
        command to run when an event occurs
  -dotfiles
        watch dot files (default true)
  -ignore string
        comma separated list of paths to ignore
  -interval string
        watcher poll interval (default "100ms")
  -list
        list watched files on start
  -recursive
        watch folders recursively (default true)

Example

# Watch the current folder and all its files and restart the server on change
watcher -cmd "python serve.py"

About

Golang based file watcher

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages