new models, a model is passed to the command handler instead of a dictionary, removal of checks for intersection of processed triggers in handlers and much, much more

This commit is contained in:
2025-03-31 19:14:42 +03:00
parent 2918bc9f81
commit 5c6fa5151a
24 changed files with 283 additions and 279 deletions
+4 -4
View File
@@ -2,8 +2,8 @@ from pprint import pprint
from rich.console import Console
from argenta.command import Command
from argenta.command.flag.registered_flag import FlagsGroup
from argenta.command.flag.registered_flag.defaults import DefaultFlags
from argenta.command.flag.models import Flags, InputFlags
from argenta.command.flag.defaults import DefaultFlags
from argenta.router import Router
from .handlers_implementation.help_command import help_command
@@ -22,8 +22,8 @@ def command_help():
help_command()
@work_router.command(Command(trigger='P', description='Start Solving', flags=FlagsGroup(DefaultFlags.HOST, DefaultFlags.PORT)))
def command_start_solving(args: dict):
@work_router.command(Command(trigger='P', description='Start Solving', flags=Flags(DefaultFlags.HOST, DefaultFlags.PORT)))
def command_start_solving(args: InputFlags):
print('Solving...')
pprint(args)
#start_solving_command()