From 19c90d94c998036c3df0575105dc29fed0bb4313 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:43:01 +0000 Subject: Implement notes --- deploy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deploy.py b/deploy.py index 5da1b49..5d0b0a2 100755 --- a/deploy.py +++ b/deploy.py @@ -48,6 +48,7 @@ print() section_count = 0 total = len(sections.keys()) +notes = {} for key, section in sections.items(): section_count += 1 print(colored(f"[{section_count}/{total}] ", "white", attrs=["bold"]) @@ -55,6 +56,17 @@ for key, section in sections.items(): + colored(key, "green")) try: run_section(key, section) + if "notes" in section: + notes[key] = section["notes"] except StepFailedError as e: print(colored("Step failed: ", "red") + str(e)) print() + +if len(notes) > 0: + print(colored(f"[Notes]", "white", attrs=["bold"])) + print() + for key, note in notes.items(): + print("From " + colored(key, "green") + ":") + for message in note: + print(f"- {message}") + print() -- cgit v1.2.3-70-g09d2