Cleaned up menu by functionalizing

This commit is contained in:
=
2025-09-04 12:18:22 -04:00
parent 73811ba4d2
commit 781edcfa99
5 changed files with 299 additions and 309 deletions
-6
View File
@@ -1,6 +1,5 @@
import os
def colorText(text: str, color: str) -> str:
colors = {
"red": "\033[91m",
@@ -240,11 +239,6 @@ def printEnforceChecklist(first_policy, second_policy, allowlist_child_name, all
else:
print(colorText(" [✗] The combined approved hashes list has not been generated","red"))
if os.path.exists(f"parquet\\approved_hashes_with_paths_{first_policy}_{second_policy}.parquet"):
print(colorText(" [✓] Longest common filepaths have been generated and appended to hash info","green"))
else:
print(colorText(" [✗] Longest common filepaths have not been generated","red"))
if os.path.exists(f"needs_approved\\path_needs_approved_{first_policy}_{second_policy}.csv"):
print(colorText(" [✓] Path review list created","green"))
else: