cuminc

cuminc is a compiler for cumin.

Installation

To build from source code, cargo is required. It is recommended to use rustup to install cargo.

From crates.io

$ cargo install cumin

From Github

$ git clone git@github.com:cympfh/cumin.git
$ make install
$ export PATH=$PATH:$HOME/.cargo/bin/
$ which cuminc

Usage

cuminc compiles cumin data into other data format, JSON by default.

$ cuminc <file.cumin>
$ cat <file.cumin> | cuminc

Example

$ echo '{{three = 1 + 2}}' | cuminc
{"three":3}
$ echo '{{three = 1 + 2}}' | cuminc -T yaml
---
three: 3