summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/commands/targs.py4
-rw-r--r--patternutils/config.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py
index 18528bb..ff5c0b1 100644
--- a/patternutils/commands/targs.py
+++ b/patternutils/commands/targs.py
@@ -70,7 +70,7 @@ def targs(
raise SystemExit
if use_predefined_template:
- template_engine, comand = config.load_template(command, 'targs')
+ command, template_engine = config.load_template(command, 'targs')
try:
render = template.get_render_function(command, engine=template_engine)
@@ -85,7 +85,7 @@ def targs(
patched_subprocess = functools.partial(
subprocess.run,
shell=shell,
- stout=stdout,
+ stdout=stdout,
stderr=stderr,
)
patched_run_command = functools.partial(
diff --git a/patternutils/config.py b/patternutils/config.py
index 0daa4bc..744c12d 100644
--- a/patternutils/config.py
+++ b/patternutils/config.py
@@ -27,7 +27,7 @@ def load_template(template_name: str, command_name: str) -> Tuple[str, str]:
if template_file.endswith('regex'):
template_engine = 'regex'
elif template_file.endswith('jinja2'):
- template_engine = 'jinja'
+ template_engine = 'jinja2'
else:
template_engine = 'python'