https://github.com/kj-9/tera-cli
Simple cli tool to render tera templates
https://github.com/kj-9/tera-cli
cli jinja2 tera
Last synced: 12 months ago
JSON representation
Simple cli tool to render tera templates
- Host: GitHub
- URL: https://github.com/kj-9/tera-cli
- Owner: kj-9
- Created: 2024-04-02T14:15:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T21:33:48.000Z (over 1 year ago)
- Last Synced: 2025-03-30T22:26:15.639Z (over 1 year ago)
- Topics: cli, jinja2, tera
- Language: Rust
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# tera-cli
Simple cli tool to render [tera](https://github.com/Keats/tera) templates.
tera is a Jinja2 like template engine written in Rust.
## Usage
```
tera-cli: Simple cli tool to render tera templates
Usage: tera [OPTIONS]
Arguments:
The path to the template file to read
The path to the output file
Options:
-w, --watch Watch for changes in template_dir
-h, --help Print help
-V, --version Print version
```
## Install from Github Release
You can download the binary from the [github release page](https://github.com/kj-9/tera-cli/releases).
Look for the url of the binary for your platform, e.g. `https://github.com/kj-9/tera-cli/releases/download/v0.0.1/tera-aarch64-apple-darwin.tar.gz`.
download and install the binary:
```sh
curl -O -L https://github.com/kj-9/tera-cli/releases/download/v0.0.1/tera-aarch64-apple-darwin.tar.gz
tar -xzf tera-aarch64-apple-darwin.tar.gz
mv tera /usr/local/bin/
tera --version
```
## Develop
### Setup
you need cargo:
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
you need `just` to run dev tools:
```sh
brew install just
```
you need some python tools, `pre-commmit` and `commitize`.
I recommend using pipx:
```sh
brew install pipx
pipx install pre-commit commitizen
pre-commit install
```
### Lint
```sh
just lint
```
### Commit
```sh
cz c
```
### Release
bump version for pre-release:
```sh
just pre-release-dry-run # check what will be changed
just pre-release
```
bump version for release:
```sh
just release-dry-run # check what will be changed
just release
```