This commit is contained in:
2025-02-09 02:37:44 +03:00
parent 213525915d
commit 8a3f742636
6 changed files with 184 additions and 58 deletions
+9 -11
View File
@@ -2,27 +2,25 @@ from rich.console import Console
from argenta.router import Router
work_router: Router = Router(name='Work points:',
ignore_command_register=False)
settings_router: Router = Router(name='Settings points:',
ignore_command_register=True)
work_router: Router = Router(name='work')
settings_router: Router = Router(name='settings')
console = Console()
@work_router.command(command='0', description='Get Help')
@work_router.command(command='2')
def command_help():
print('help command')
console.print('[bold red]command help [/bold red]')
@work_router.command(command='1', description='Start Solving')
@work_router.command(command='2', description='txiyxykkkkkkkkkkkk')
def command_start_solving():
print('start solving')
console.print('[bold red]command start [/bold red]')
@settings_router.command(command='U', description='Update WordMath')
def command_update():
print('update wordmath')
@settings_router.command(command='2')
def command_settings():
console.print('[bold red]command settings [/bold red]')
@work_router.unknown_command
+2
View File
@@ -1,3 +1,5 @@
from pprint import pprint
from tests.mock_default_app.handlers.routers import work_router, settings_router
from argenta.app.entity import App
from art import text2art