yashiro: A template CLI tool based on jinja#
yashiro
is just a thin wrapper around jinja.
In a nutshell#
Installation#
The easiest way is to use poetry to manage your dependencies and add yashiro to them.
[tool.poetry.dependencies]
yashiro = "*"
Usage#
yashiro
, once installed offers a single command, yashiro
, that parses the templated based on a JSON file. yashiro
follows the GNU recommendations for command line interfaces, and offers:
-h
or--help
to print help, and-V
or--version
to print the version
You can use yashiro to parse a template.
usage: yashiro [-h] [-V] [-m MAPPING] [-s] -t TEMPLATE
optional arguments:
-h, --help Show this help message and exit
-m/--mappings MAPPINGS The path to the file that contains the mappings
-t/--template TEMPLATE The path to the template
-V/--version Print the version and exit