From 46b6c0d68ceb15e3db6b06a8263ab2d83ad2f683 Mon Sep 17 00:00:00 2001 From: Jonathon Broughton Date: Sun, 4 Aug 2024 17:36:15 +0100 Subject: [PATCH] Print commit details with server URL in a formatted manner - Added print statements to display the beginning and end of execution - Modified the print statement to display the server URL in a formatted manner --- run.py | 4 ++++ src/main.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index f019d8f..f5341c1 100644 --- a/run.py +++ b/run.py @@ -9,5 +9,9 @@ sys.path.append(str(src_path)) from src.main import automate_function, FunctionInputs if __name__ == "__main__": + print("---------") + print("| BEGIN |") + print("---------") + # Entry point: Execute the automate function with defined inputs. execute_automate_function(automate_function, FunctionInputs) diff --git a/src/main.py b/src/main.py index f08587b..8f65eb9 100644 --- a/src/main.py +++ b/src/main.py @@ -113,7 +113,9 @@ def automate_function( file_name = write_pdf_to_temp(report) - print(commit_details["server_url"]) + print("------------------------------------------------") + print(f"| {commit_details["server_url"]} |") + print("------------------------------------------------") safe_store_file_result(automate_context, file_name)