Printing the task to be run.

This commit is contained in:
Ben Felder 2019-06-09 20:33:21 +02:00
parent 4d6801df8f
commit adadabc6f7

View File

@ -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)