after changing a file, run a command. Abandoned. Add an issue if you want to take over!
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
.gitignore
LICENSE.txt
README.md
snackwrap.py

README.md

Snackwrap

After changing a file, run a command.

Let's say I want to run a build script every time I save a file in src/. I also want to scream every time you edit a forbidden file.

I'll make snackwrap.txt:

src/*           ./build.sh
forbidden.txt   echo "AUUUGHH!!"

Now, I run Snackwrap.

$ snackwrap

Now, every time I change a file in src/, I'll run build.sh. And every time I edit forbidden.txt, I'll scream.

You can run Snackwrap in a few ways:

$ python snackwrap.py
$ ./snackwrap.py
$ # put snackwrap.py somewhere in your PATH and type snackwrap

For more help:

$ snackwrap -h

Cool alternatives