Tips & Tricks

Watch all the files Mercurial is tracking (instead of hand-crafting a find
command to output that list) and run make on changes:

$ hg files | peat make

Full Usage

Here's the full usage:

Usage:peat[options]COMMANDCOMMANDshouldbegivenasasingleargumentusingashellstring.Alistofpathstowatchshouldbepipedinonstandardinput.Forexample:find.|peat'./test.sh'find.-name'*.py'|peat'rm *.pyc'find.-name'*.py'-print0|peat-0'rm *.pyc'If--dynamicisused,thegivencommandwillberuneachtimetogeneratethelistoffilestocheck:peat--dynamic'find .''./test.sh'peat--dynamic'find . -name '\''*.py'\''' 'rm*.pyc'Options: -h, --help show this help message and exit -i N, --interval=N interval between checks in milliseconds -I, --smart-interval determine the interval based on number of files watched (default) -d COMMAND, --dynamic=COMMAND run COMMAND before each run to generate the list of files to check -D, --no-dynamic take a list of files to watch on standard in (default) -c, --clear clear screen before runs (default) -C, --no-clear don'tclearscreenbeforeruns-v,--verboseshowextraloggingoutput(default)-q,--quietdon'tshowextraloggingoutput-w,--whitespaceassumepathsareseparatedbywhitespace(default)-n,--newlinesassumepathsareseparatedbynewlines-s,--spacesassumepathsareseparatedbyspaces-0,--zeroassumepathsareseparatedbynullbytes

License

Remember that you can use GPL'ed software through their command line interfaces
without any license-related restrictions. peat's command line interface is
the only stable one, so it's the only one you should ever be using anyway. The
license doesn't affect you unless you're:

Trying to copy the code and release a non-GPL'ed version of peat.

Trying to use it as a Python module from other Python code (for your own
sanity I urge you to not do this) and release the result under a non-GPL
license.