diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 22:43:01 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 22:43:01 +0000 |
| commit | 19c90d94c998036c3df0575105dc29fed0bb4313 (patch) | |
| tree | 7d8d4415a708141767d57166457276fb60e90b61 /deploy.py | |
| parent | 8b4ed7b22231e62911e015a4acbcb9b73f8666d3 (diff) | |
Implement notes
Diffstat (limited to 'deploy.py')
| -rwxr-xr-x | deploy.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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() |
