From c95723c15fa89372d2b641616eef9ecde9e04dd9 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 14 Oct 2024 09:24:20 -0400 Subject: [PATCH] feat(minijnija-cli): add support for defining args as env Signed-off-by: Devin Buhl fix: keep super on func Signed-off-by: Devin Buhl fix: forgot to update after testing Signed-off-by: Devin Buhl --- minijinja-cli/README.md | 5 +++- minijinja-cli/src/cli.rs | 64 ++++++++++++++++++++++++++-------------- 2 files changed, 46 insertions(+), 23 deletions(-) diff --git a/minijinja-cli/README.md b/minijinja-cli/README.md index 81a2e856..ef93755d 100644 --- a/minijinja-cli/README.md +++ b/minijinja-cli/README.md @@ -5,7 +5,7 @@ [![Crates.io](https://img.shields.io/crates/d/minijinja-cli.svg)](https://crates.io/crates/minijinja-cli) [![rustc 1.61.0](https://img.shields.io/badge/rust-1.61%2B-orange.svg)](https://img.shields.io/badge/rust-1.61%2B-orange.svg) -`minijinja-cli` is a command line executable that uses +`minijinja-cli` is a command line executable that uses [MiniJinja](https://github.com/mitsuhiko/minijinja) to render Jinja2 templates directly from the command line to stdout. @@ -52,6 +52,9 @@ can be set to stdin at once. ## Options +Note: The below options can also be set via environment varibles using the +`MINIJINJA_