fix type hints with ty help, add ability to configure stdout capture when handling input by the router

This commit is contained in:
2025-05-20 22:44:47 +03:00
parent 45f410e3e8
commit fd287c5da0
15 changed files with 59 additions and 70 deletions
+4 -7
View File
@@ -10,19 +10,16 @@ from argenta.orchestrator import Orchestrator
router = Router()
for i in range(10000):
trigger = f"cmd{i}"
@router.command(Command(trigger, aliases=[f'dfs{i}']))
def handler(response: Response):
print(response.status)
@router.command(Command('case are'))
def handler(response: Response):
print(response.status)
app = App(repeat_command_groups=False)
app.include_router(router)
print(get_time_of_pre_cycle_setup(app))
app.run_polling()
+1 -1
View File
@@ -21,7 +21,7 @@ console = Console()
)
)
def command_help(response: Response):
case = input('test')
case = input('test > ')
print(case)
print(response.status)
print(response.undefined_flags.get_flags())