neph

A modern command line job processor that can execute jobs concurrently command-line command-line-tool command-line-app job-processor job-scheduler make concurrency yml
0.1.0 released
tbrand/neph
202 6 3
Taichiro Suzuki

Neph

A modern command line job processor written in Crystal that can execute jobs concurrently. :rocket:

neph

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

  1. Fork it ( https://github.com/tbrand/neph/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • tbrand Taichiro Suzuki - creator, maintainer
neph:
  github: tbrand/neph
  version: ~> 0.1.0
License MIT
Crystal 0.22.0

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently