war

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

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

Go to latest
Published: Jan 19, 2014 License: MIT Imports: 11 Imported by: 0

README

War - Watch and repeat

War will watch a file or folder (and all of its content) and run a command every time a change is detected. This is quite handy if for example you want to run a test whenever a change is detected in your source code.

War uses GNU Bash to run the command and because of that, it is required that bash is installed on your machine. This should be the case for any modern UNIX based operating system like Mac OS X, Linux and BSD.

Besides that, the only other requirement is that Go is installed and set up correctly on the host machine.

Installation

$ go get https://github.com/ChrisBuchholz/war

Usage

$ war /my/project/src "make test"

This will run make test every time a change is detected in /my/project/src.

The way I have been developing War, is by running the following command which continuesly builds War as I work on it. It will output whatever go build outputs, or 'No errors' if the code compiles.

$ war . "go build && [ $? -eq 0 ] && echo 'No errors' && rm war"

I'll have this running in a tmux split next to Vim. Pretty nifty!

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