mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
73303b1c08
Full code coverage with annotations, fixing errors in various linters: ruff, wps, etc. Fixing errors in type checkers: ty, mypy, pyright. Formatting and bringing code to a consistent style, applying best practices in various aspects.
26 lines
708 B
Python
26 lines
708 B
Python
from argenta.command import Command, PredefinedFlags, Flags, Flag, PossibleValues
|
|
from argenta.response import Response
|
|
from argenta import Router
|
|
|
|
|
|
work_router: Router = Router(title="Work points:")
|
|
|
|
flag = Flag('csdv', possible_values=PossibleValues.NEITHER)
|
|
|
|
|
|
@work_router.command(
|
|
Command("get",
|
|
description="Get Help",
|
|
aliases=["help", "Get_help"],
|
|
flags=Flags([PredefinedFlags.PORT,
|
|
PredefinedFlags.HOST])))
|
|
def command_help(response: Response):
|
|
print(response.status)
|
|
print(response.input_flags.flags)
|
|
|
|
|
|
@work_router.command("run")
|
|
def command_start_solving(response: Response):
|
|
print(response.status)
|
|
print(response.input_flags.flags)
|