Upload files to "Modules"
This commit is contained in:
@ -4,6 +4,7 @@ from colorama import Fore, Style
|
||||
|
||||
from Assets.ascii_text_prompts import ascii_art, full_ascii_art, infinitei
|
||||
from Assets.random_tip import get_random_tip_with_color
|
||||
from Modules.global_commands import *
|
||||
|
||||
def clear_screen():
|
||||
# Check the system platform and use the appropriate command
|
||||
@ -30,10 +31,16 @@ def display_menu(menu_options):
|
||||
header(is_main_menu=True) # Show full details on main menu
|
||||
for key, value in menu_options.items():
|
||||
print(f"[{key}] {value['name'].upper()}")
|
||||
print("[0] Logout\n")
|
||||
print("[0] Logout")
|
||||
print("[NOTE] Analyst Notebook | [ABOUT] About Page\n") # Add global command options
|
||||
|
||||
choice = input("Enter your choice: ").strip().lower()
|
||||
|
||||
# Handle global commands
|
||||
if choice in ["note", "about"]:
|
||||
global_command_handler(choice) # Call the global command handler
|
||||
continue # Restart the loop after handling global commands
|
||||
|
||||
# Match the choice to a menu option
|
||||
if choice in menu_options:
|
||||
menu_options[choice]["submenu"]() # Call the submenu without arguments
|
||||
@ -43,6 +50,8 @@ def display_menu(menu_options):
|
||||
else:
|
||||
print("Invalid choice. Please try again.")
|
||||
|
||||
|
||||
|
||||
def print_info(title, content):
|
||||
header()
|
||||
print("=" * 40)
|
||||
|
Reference in New Issue
Block a user