From adadabc6f7029da4f023b2ba8b11cbbbb012bb7e Mon Sep 17 00:00:00 2001 From: Ben Felder Date: Sun, 9 Jun 2019 20:33:21 +0200 Subject: [PATCH] Printing the task to be run. --- copier/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copier/main.py b/copier/main.py index ebabfeb..c8a87ae 100644 --- a/copier/main.py +++ b/copier/main.py @@ -330,6 +330,7 @@ def overwrite_file(display_path, source_path, final_path, content, **flags): def run_tasks(dst_path, render, tasks): dst_path = str(dst_path) - for task in tasks: + for i, task in enumerate(tasks): task = render.string(task) + printf("Running task {} of {}".format(i + 1, len(tasks)), task) subprocess.run(task, shell=True, check=True, cwd=dst_path)