p2

Rerun command by watching modified file


Keywords
keitheis
License
MIT
Install
pip install p2==1.0.0

Documentation

p2: Rerun command when given filed changed

http://img.shields.io/pypi/v/p2.svg?style=flat
% p2 'make' *.plim static/*.scss
Player Two is watching about 6 files:
(' base.plim content.plim index.plim oldcontent.plim oldindex.plim '
 'static/index.scss')
FIGHT!
make
python -mscss < static/index.scss > static/index.css
plimc -H -o index.html index.plim
CONTINUE?
content.plim changed
FIGHT!
make
python -mscss < static/index.scss > static/index.css
plimc -H -o index.html index.plim
CONTINUE?
^CGAMEOVER

Installation

pip install p2