From d9d98e6ba0854d6674701ec0cfdf020ce453f9bc Mon Sep 17 00:00:00 2001 From: James MacMahon Date: Wed, 7 Oct 2020 13:29:38 -0400 Subject: [PATCH] add bool filter bool is a Python keyword and cannot be added as a --filter without infinite recursion --- j2cli/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/j2cli/cli.py b/j2cli/cli.py index fae229a..e6551d3 100644 --- a/j2cli/cli.py +++ b/j2cli/cli.py @@ -190,6 +190,7 @@ def render_command(cwd, environ, stdin, argv): renderer.register_filters({ 'docker_link': filters.docker_link, 'env': filters.env, + 'bool': bool, }) for fname in args.filters: renderer.import_filters(fname)