hbsenvsubst

Substitutes the values of environment variables, but with handlebars.

About

Basically the idea of hbsenvsubst is to work similar to envsubst, but instead of using shell format, it uses handlebars.

Please be aware that at this time, hbsenvsubst should be considered a prototype that was quickly rushed to play with this idea, so your mileage may vary.

Usage

shell hbsenvsubst < some-file-in > some-file-out

Example

An example handlebars input like this:

```shell

!/bin/bash

echo "hello {{env.USER}}" ```

should yield hello foo, given that the USER environment variable is "foo".

Features

There are currently three objects accessible in handlebars:

In addition to this, there are some additional helpers:

The rust-handlebars crate also includes some built-in helpers:

License

MIT License