Monitor file changes, and run script on changes.
I saw kicker the other day and thought: I could write that in a minute!
So I did.
$ pip install punt
$ punt 'du -sh' # list file sizes, update the list when a file in cwd changes $ punt -w tests 'py.test' # run py.test when any file in tests/ changes $ punt -w tests -w lib 'py.test' # run py.test when any file in tests/ or lib/ changes $ punt -l make # only monitor "local" files (don't observe subdirectories) $ punt --help $ punt --version
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.