Added CommandsDebugger

This commit is contained in:
2025-11-16 23:06:00 +01:00
parent cdccd0cbaa
commit 3de9aff15c
5 changed files with 59 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ class BaseCommand:
self.description = description
self._htmx_extra = {}
self._bindings = []
self._ft = None
# register the command
CommandsManager.register(self)
@@ -68,6 +69,7 @@ class BaseCommand:
:param ft:
:return:
"""
self._ft = ft
htmx = self.get_htmx_params()
ft.attrs |= htmx
return ft
@@ -95,6 +97,9 @@ class BaseCommand:
def url(self):
return f"{ROUTE_ROOT}{Routes.Commands}?c_id={self.id}"
def get_ft(self):
return self._ft
def __str__(self):
return f"Command({self.name})"