Update documentation and code snippets

This commit is contained in:
2025-12-02 10:51:44 +03:00
parent 2a96dfcabe
commit 19906c1b1b
28 changed files with 85 additions and 531 deletions
+5 -13
View File
@@ -1,18 +1,10 @@
from argenta import Router, Response, Command
from argenta.command import Flags, Flag
from argenta import Command, Response, Router
from argenta.command import Flag, Flags
work_router: Router = Router(title="Base points:", disable_redirect_stdout=True)
@work_router.command(Command
(
'hello',
flags=Flags(
Flag('test')
),
description="Hello, world!"
)
)
@work_router.command(Command("hello", flags=Flags(Flag("test")), description="Hello, world!"))
def command_help(response: Response):
c = input("Enter your name: ")
print(f"Hello, {c}!")
c = input("Enter your name: ")
print(f"Hello, {c}!")