This is to support generating command lines or shell scripts using
Jinja2 templates in the future.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
import enum
import os
import posixpath
+import shlex
import zipimport
from typing import Any, Optional, IO, Tuple, Callable, cast
def _env(self) -> jinja2.Environment:
if self._jinja2_env is None:
self._jinja2_env = jinja2.Environment(loader=self._loader)
+ self._jinja2_env.filters['shellquote'] = shlex.quote
return self._jinja2_env
@property