Upload files to "Modules"
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
import sys # For exiting the program
|
||||
from Modules.wrappers import *
|
||||
from Modules.Submenus.analyst_notebook import analyst_notebook_submenu
|
||||
from Modules.Submenus.about import about_submenu
|
||||
|
||||
|
||||
# Global action status to persist across all submenus and their nested submenus
|
||||
GLOBAL_ACTION_STATUS = {}
|
||||
@ -74,12 +77,18 @@ def build_submenu(menu_title, actions=None, module=None):
|
||||
else:
|
||||
print(f"{Style.RESET_ALL}[{key}] {status} {action['description']}")
|
||||
|
||||
print("[0] Return to Main Menu")
|
||||
print("[0] Return to Previous Menu")
|
||||
print("[q] EXIT\n")
|
||||
|
||||
|
||||
# Get user choice
|
||||
choice = input("Enter your choice: ").strip().upper()
|
||||
|
||||
# Handle global commands
|
||||
if choice in ["NOTE", "ABOUT"]:
|
||||
global_command_handler(choice)
|
||||
continue
|
||||
|
||||
# Handle highlighting (toggle with "!")
|
||||
if choice.endswith("!") and choice[:-1] in numbered_actions:
|
||||
key_to_toggle = choice[:-1]
|
||||
|
Reference in New Issue
Block a user