add print() for each JSON file written as a kind of progress bar
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 2 Aug 2023 21:47:30 +0000 (14:47 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 2 Aug 2023 21:47:30 +0000 (14:47 -0700)
src/budget_sync/main.py

index a5ec9faec6b136075222f5d7b2060a77e2742eb6..5f2d7fc99e89cc30659472ddfc19c1f1dfabdfe9 100644 (file)
@@ -69,8 +69,8 @@ def main():
         write_budget_markdown(budget_graph, args.output_dir)
         write_budget_csv(budget_graph, args.output_dir)
     summarize_milestones(budget_graph)
-    print("```")  # for using the output as markdown
     json_milestones(budget_graph, args.comments, args.output_dir)
+    print("```")  # for using the output as markdown
 
 
 def print_markdown_for_person(budget_graph: BudgetGraph, config: Config,
@@ -221,6 +221,7 @@ def json_milestones(budget_graph: BudgetGraph, add_comments: bool,
 
         output_file = output_dir / f"report.{milestone.identifier}.json"
         output_file.write_text(json.dumps(d, indent=2), encoding="utf-8")
+        print(f"wrote JSON for {milestone.identifier}")
 
 
 if __name__ == "__main__":