Awesome
<h1 align="center"> <img src="https://user-images.githubusercontent.com/3483230/43884788-ffc3fe84-9bf1-11e8-88c3-9f7fb6c0d419.png" width="180" /> </h1> <p align="center"> <a href="https://travis-ci.org/tbrand/neph"><img src="https://travis-ci.org/tbrand/neph.svg?branch=master&style=flat" alt="Latest version" /></a> <a href="https://github.com/tbrand/neph/releases"><img src="https://img.shields.io/github/release/tbrand/neph.svg?style=flat" alt="Latest version" /></a> <a href="https://raw.githubusercontent.com/tbrand/neph/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat" /></a> <a href="https://github.com/tbrand/neph/wiki"><img src="https://img.shields.io/badge/Document-wiki-blue.svg?style=flat" /></a> <a href="https://github.com/tbrand/neph/issues"><img src="https://img.shields.io/github/issues/tbrand/neph.svg?style=flat" /></a> </p> <p align="center"> <img src="https://user-images.githubusercontent.com/3483230/43591914-5c068eca-96af-11e8-9164-8df794ca0436.gif" width="700" /> </p>- A modern command line job processor written in Crystal :rocket:
- Parallel job execution. :rocket:
- Use like
make
command. :rocket:
Installation
Arch Linux
Use your favourite AUR helper.
Package name: neph-git
Mac
You can install Neph with brew
.
$ brew tap tbrand/homebrew-neph
$ brew install neph
Manual
Build dependencies:
crystal
andshards
for building the binarygo-md2man
for generating the man page
It needs libyaml
to be installed.
If you have a previous version of neph
installed:
$ git clone https://github.com/tbrand/neph
$ cd neph
$ neph # man page will be at neph.1, binary will be at bin/neph
If you don't have a previous version of neph
installed:
$ git clone https://github.com/tbrand/neph
$ cd neph
$ shards build # Now executable binary is located at bin/neph
$ bin/neph man # Generate man page. It will be located at neph.1
Usage
All features for neph.yaml is written in sample/neph.yaml. So please refer for the details.
Wiki is also maintained as a document. Here is a full features.
- Execute command from neph
- Define dependencies between jobs
- Working directory
- Specify sources
- Ignoring errors
- Hide executing command
- Set a job result to env vars
- Import other configurations
- Command line options
- Log locations
- Log modes
Use cases
Neph is used in which_is_the_fastest.
The build time is reduced from 102[sec] to 33[sec].
The neph.yaml is here.
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