From c434ab688f6908e157698fde5fafce749f5c6505 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Thu, 24 Oct 2024 11:08:06 -0400 Subject: [PATCH] chore: prepare minijinja config file Signed-off-by: Devin Buhl --- .envrc | 2 ++ .minijinja.toml | 5 +++++ Taskfile.yaml | 5 ++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .minijinja.toml diff --git a/.envrc b/.envrc index ec65b91a78986..9fc79484aef6b 100644 --- a/.envrc +++ b/.envrc @@ -9,6 +9,8 @@ PATH_add "$(expand_path "${GOPATH}/bin")" # Python export VIRTUAL_ENV="$(expand_path ./.venv)" PATH_add "$(expand_path "${VIRTUAL_ENV}/bin")" +# Minijinja +export MINIJINJA_CONFIG_FILE="$(expand_path ./.minijinja.toml)" # Taskfile export TASK_X_ENV_PRECEDENCE=1 export TASK_X_MAP_VARIABLES=0 diff --git a/.minijinja.toml b/.minijinja.toml new file mode 100644 index 0000000000000..05c2a7b6a055d --- /dev/null +++ b/.minijinja.toml @@ -0,0 +1,5 @@ +autoescape = "none" +newline = true +trim-blocks = true +lstrip-blocks = true +env = true diff --git a/Taskfile.yaml b/Taskfile.yaml index fa2cd628f369f..6910379c17893 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,6 +12,7 @@ vars: env: GOPATH: '{{.ROOT_DIR}}/.go' KUBECONFIG: '{{.CLUSTER_DIR}}/kubeconfig' + MINIJINJA_CONFIG_FILE: '{{.ROOT_DIR}}/.minijinja.toml' SOPS_AGE_KEY_FILE: '{{.ROOT_DIR}}/age.key' TALOSCONFIG: '{{.CLUSTER_DIR}}/talosconfig' VIRTUAL_ENV: '{{.ROOT_DIR}}/.venv' @@ -25,4 +26,6 @@ includes: tasks: - default: task --list + default: + cmd: task --list + silent: true