yujinqiu / acmewatch

Port of rsc's Watch command to portable "fsnotify" library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a version of 9fans.net/go/acme/Watch that uses the gopkg.in/fsnotify.v1 Go library, instead of OSX-specific libraries. It is also renamed to 'acmewatch' to avoid a name collision with the standard watch utility found on most Linux boxes.

Install & usage

Acmewatch is for use within acme. Once you've Go installed, run the following to download, build, and install the command:

go get github.com/droyo/acmewatch

From within acme, execute

acmewatch command [args ...]

For example, to run go test whenever a file changes in the current directory, execute

acmewatch go test

It looks like this:

acmewatch demo

About

Port of rsc's Watch command to portable "fsnotify" library

License:Other


Languages

Language:Go 100.0%