diff --git a/octosuite/colors.py b/octosuite/colors.py index 1bc1a1a..09af0a8 100644 --- a/octosuite/colors.py +++ b/octosuite/colors.py @@ -1,5 +1,6 @@ import psutil import platform +from richt.tree import Tree from datetime import datetime @@ -8,22 +9,22 @@ from datetime import datetime # colors.py is the reason why users get to choose whether to enable/disable colors # delete this file, the entire program breaks system_info = [("RAM", f"{str(round(psutil.virtual_memory().total / (1024.0 **3)))}GB"), + ("Processor",platform.processor), ("Node", platform.node), ("Release", platform.release), - ("Version", platform.version), - ("Processor",platform.processor), - ("Architecture", platform.architecture) - ] -start_banner = f""" - OCTOSUITE © 2023 Richard Mwewa + ("Architecture", platform.architecture), + ("Version", platform.version)] +first_banner = f""" + OCTOSUITE © 2022 Richard Mwewa {datetime.now().strftime('%A %d %B %Y, %H:%M:%S%p')} - - """ -print(start_banner) -print(f"{platform.system()}") +""" + +print(first_banner) +system_tree = Tree(f"{platform.system()}") for system_key, system_value in system_info: - print(f"├─ {system_key}: {system_value()}") + system_tree.add(f"{system_key}: {system_value()}") +xprint(system_tree) print("\n") while True: try: @@ -46,3 +47,4 @@ while True: except KeyboardInterrupt: exit(f"[!] Process interrupted with Ctrl+C.") +