neph
Neph
A modern command line job processor written in Crystal that can execute jobs concurrently. :rocket:
Used
Neph is used in which_is_the_fastest. In which_is_the_fastest
, building time is reduced from 102[sec] to 33[sec]. neph.yml is here.
Installation
Cloning this project
git clone https://github.com/tbrand/neph
Compile
cd neph; shards build
Now executable binary is at neph/bin/neph
.
Usage
Put neph.yml
at root of your project
main:
command:
echo "Hello Neph!"
Execute neph
> neph
Options
You can specify job name by -j
. In neph.yml,
hello:
command:
echo "Hello!"
Then,
> neph -j hello
To see other usages, use --help
option
> neph --help
neph.yml
You can define dependencies between jobs like this
main:
command:
echo "Main!"
depends_on:
- hello
hello:
command:
echo "Hello!"
Here main
job depends on hello
. So when you execute neph
, hello
job is triggered before the execution of the main
job.
See sample for details.
Contributing
- Fork it ( https://github.com/tbrand/neph/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- tbrand Taichiro Suzuki - creator, maintainer