watch-cli

command module
v0.0.0-...-c3447fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 19 Imported by: 0

README

watch-cli: Watch file system and run command when files change

Go (golang) tool for watching a path and running a command when files change.

Example. Lets say you have a directory ~/Projects/tab-server1 and whenever this gets recompiled you want /home/pschlump/Projects/rpt-q/rpt-q-init.sh to run.


	$ watch-cli -c "bash -c '/home/pschlump/Projects/rpt-q/rpt-q-init.sh'" ~/Projects/tab-server1/ 

By default the watch-cli will read in a ./watch-cli-cfg.json configuration file. This file can specify the files to watch. This file is checked for after the -t change directory command line option is applied.


{
	"FilesToWatch": [ "abc.def", "./config-dir" ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL