action
dev_tool.tui.menu.action
log = logging.getLogger(__name__)
module-attribute
Action
Bases: Protocol
A protocol for menu actions.
This class defines the interface for executing actions in the TUI menu.
run
is_submenu
CommandAction
dataclass
A class for executing commands from the TUI menu.
This class runs a command function when selected from the menu.
command
instance-attribute
run
is_submenu
DisplayAction
dataclass
A class for displaying scrollable content in the TUI.
This class displays content within the TUI loop without exiting cbreak mode, allowing for scrolling and navigation back to the menu.
content
instance-attribute
run
is_submenu
SubmenuAction
dataclass
A class for opening submenus from the TUI menu.
This class navigates to a submenu when selected from the menu.