mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
docs
This commit is contained in:
@@ -1,21 +1,8 @@
|
||||
from dishka import FromDishka
|
||||
from argenta import Router, Response, Command
|
||||
|
||||
from argenta import Router
|
||||
from argenta.command import Flag, PossibleValues
|
||||
from argenta.orchestrator.argparser import ArgSpace
|
||||
from argenta.response import Response
|
||||
from argenta.router.defaults import system_router
|
||||
|
||||
work_router: Router = Router(title="Work points:")
|
||||
|
||||
flag = Flag("csdv", possible_values=PossibleValues.NEITHER)
|
||||
work_router: Router = Router(title="Base points:")
|
||||
|
||||
|
||||
@work_router.command("get")
|
||||
def command_help(response: Response, argspace: FromDishka[ArgSpace]):
|
||||
print(argspace.all_arguments)
|
||||
|
||||
|
||||
@system_router.command("run")
|
||||
def command_start_solving(response: Response):
|
||||
print(response.get_data())
|
||||
@work_router.command(Command('hello', description="Hello, world!"))
|
||||
def command_help(response: Response):
|
||||
print('Hello, world!')
|
||||
|
||||
Reference in New Issue
Block a user