Update README for 0.8.0

This commit is contained in:
Matt Green 2016-09-22 08:03:23 -06:00
parent 553687b315
commit 153f0b0ed9
2 changed files with 17 additions and 2 deletions

View File

@ -1,8 +1,14 @@
VER=$(shell grep version Cargo.toml | head -n1 | grep -Eow '".+"' | sed 's/"//g')
debug: src/* Cargo.toml
@cargo build
release: src/* Cargo.toml
@cargo build --release
dist: release
@tar -cz -C target/release -f target/release/watchexec_osx_$(VER).tar.gz watchexec
@shasum -a 256 target/release/watchexec_osx_$(VER).tar.gz
clean:
@cargo clean

View File

@ -20,6 +20,7 @@ Beta: CLI arguments subject to change
* Monitors path specified on command line for changes
* Uses most efficient event polling mechanism, based on platform (except for [BSD](https://github.com/passcod/rsnotify#todo))
* Coalesces multiple filesystem events into one, for editors that use swap/backup files during saving
* Support for filtering/ignoring events based on glob patterns
* Optionally clears screen between executions
* Does not require a language runtime
* Small (~100 LOC)
@ -33,9 +34,17 @@ Beta: CLI arguments subject to change
Call `make test` when there are any changes in the `src` directory:
$ watchexec src "make test"
$ watchexec src make test
Note the use of quotes on the command.
Call `make test` when any Python file changes in this directory, or a subdirectory:
$ watchexec -f '*.py' . make test
Call `make test` when any file changes in this directory/subdirectory, except for everything below `target`:
$ watchexec -i target . make test
Always quote glob patterns (*.py)!
##Installation