Update documentation and code snippets

This commit is contained in:
2025-12-02 22:26:30 +03:00
parent eae8cdbb58
commit e6645730f0
8 changed files with 37 additions and 37 deletions
+10 -10
View File
@@ -1,11 +1,11 @@
from argenta.orchestrator.argparser import ArgSpace, BooleanArgument, ValueArgument
from argenta.orchestrator.argparser.arguments import InputArgument
from argenta import Router, Command
argspace = ArgSpace([
InputArgument(name="arg1", value="val1", founder_class=ValueArgument),
InputArgument(name="arg2", value=True, founder_class=BooleanArgument),
InputArgument(name="arg3", value="val3", founder_class=ValueArgument),
])
print(argspace._name_object_paired_args)
print(argspace.get_by_type(ValueArgument))
router = Router()
@router.command(Command('some', aliases=['test', 'case']))
def handler(response): # pyright: ignore[reportUnusedFunction]
pass
@router.command(Command('ext', aliases=['more', 'foo']))
def handler2(response): # pyright: ignore[reportUnusedFunction]
pass
print(router.aliases)