mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 01:55:29 +03:00
18 lines
395 B
Python
18 lines
395 B
Python
from argenta import App, Command, Response, Router
|
|
|
|
|
|
app = App(override_system_messages=True)
|
|
router = Router()
|
|
|
|
@router.command(Command('command'))
|
|
def handler(_res: Response) -> None:
|
|
pass
|
|
|
|
@router.command(Command('command_other'))
|
|
def handler2(_res: Response) -> None:
|
|
pass
|
|
|
|
app.include_routers(router)
|
|
app._pre_cycle_setup()
|
|
|
|
assert app._most_similar_command('command_') == 'command' |