Skip to content

aoqfonseca/peon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Peon works for you while you are developing.

It runs any command you tell it and execute the command when some file that matches a pattern is changed.

Installing

Just install using:

python setup.py install

You can install from pip:

pip install peon

If you intend using this in Mac, you need to install py-Growl for Growl Notification

Configuring Growl

To use Growl, you need to configure him to allow listening incoming notification (Network)

Using

By default Peon looks for changes in python files (*.py) and if no command is specified, it run nosetests.

Peon will keep running that command whenever a file changes.

For example, take the following directory tree as example:

.
|-- Makefile
|-- peon
|   |-- __init__.py
|   |-- peon.py
|   |-- stop.png
|   `-- tick.png
|-- setup.py
`-- tests
    |-- base.py
    |-- checksum_spec.py
    |-- something_has_changed_spec.py

If I want Peon watches for changes in all my "*.py" files and run "make" when something changes, I could do simply:

$ peon make # run make in the current dir, looking for changes in *.py files

It is possible to specify the directory to watch (-d or --directory option):

$ peon make -d peon

It is possible to tell peon what is your pattern too, through -p or --patern option:

$ peon make -p '*.png' -d peon

If you do not want peon to reset/clear your terminal before each run, you may use the --no-reset option:

$ peon make --no-reset

About

Peon works for you while you are developing (think autotest).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%