mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
Update documentation and code snippets
This commit is contained in:
@@ -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}!")
|
||||
|
||||
Reference in New Issue
Block a user