https://github.com/gregoryv/react
Commandline tool for executing scripts on directory changes
https://github.com/gregoryv/react
Last synced: 5 months ago
JSON representation
Commandline tool for executing scripts on directory changes
- Host: GitHub
- URL: https://github.com/gregoryv/react
- Owner: gregoryv
- License: gpl-3.0
- Archived: true
- Created: 2013-10-18T02:46:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-28T04:29:01.000Z (over 12 years ago)
- Last Synced: 2024-06-20T16:44:23.880Z (almost 2 years ago)
- Language: Go
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

=====
Commandline tool for executing scripts on directory changes
Usage
-----
If you have a root directory structure like this
.
subdir_A/
subdir_B/subdir_C/.onchange
subdir_B/.onchange
Then activate the react tool
cd root
react
it will monitor directories `subdir_B/subdir_C` and `subdir_B`
for changes and execute the `.onchange` script in each directory whenever a file event eccurs.
Example `.onchange`
___________________
If working on a python module react could be used to execute tests whenever a
.py file is modified.
#!/bin/sh
extension="${1##*.}"
case $extension in
py)
cd ~/myproject
python setup.py test
;;
esac