neomake
neomake is a fully open source task runner CLI utility that acts as a modern alternative to known utilities.
Project state
neomake is currently a pre-release and to be considered as unstable. It is actively maintained and used in production.
Features
- Task chains
Execute many tasks in sequence, easily re-use single tasks using YAML anchors. - Task chain graphs
Per task chain, you can specify a list of other task chains that are required as a prerequisite for this one to run. This can be used to build more complex graphs of tasks. All task chains, are collected in a recursive manner and deduped. They are executed in a leaf-first fashion in which the first stages of execution contain task chains with no preconditions, moving forwards through task chains containing preconditions that already run, finally leading to the entire graph being executed. Useneomake -e describe -c ...to view the task chains and the stages (in order) they are executed in. - Invocation matrices
Invoke task chains many times by specifying multiple entries in a matrix that's used for parameterizing a seperate chain execution. This feature is heavily inspired by the GitLab pipeline's parallel matrix builds. - YAML
No need for any fancy configuration formats or syntax. The entire configuration is done in an easy to understandyamlfile, including support for handy features such as YAML anchors (and everything in the YAML 1.2 standard). - Customizable environment
You can customize which shell or program (such as python)neomakeuses as interpreter for the command. You can also specify arguments that are provided per invocation via the command line, working directories and environment variables on multiple different levels. Generally, the most inner scope will extend or replace the outer scope.
Installation
neomake is distributed through cargo.
cargo install neomake
Usage
neomake initneomake run -c test -c othertest -a args.test="some argument"neomake -e describe -c test -c othertest -o yaml
Why
Why would someone build a task runner if there's many alternatives out there? A few of the most well known task running utilities / frameworks are (non exhaustive):
make(Makefile) - the original as well as many different implementationsEarthly(Earthfile) - executing tasks inside of containerspyinvoke(tasks.py) - executing tasks from within python scripts
I built this utility because all of the alternatives I have tried, including the ones listed above were lacking some features. I was basically looking for a subset of the functionality which the GitLab pipelines provide incl. features such as matrix builds and more. Especially things like invoking commands in many locations, parallelizing tasks, easy parameterization and a few more.