This commit is contained in:
2025-11-02 01:04:31 +03:00
parent 64c984a704
commit 9c58c10152
70 changed files with 341 additions and 391 deletions
@@ -5,7 +5,7 @@ from argenta.di import FromDishka
router = Router()
@router.command('connect')
@router.command("connect")
def connect_handler(response: Response, connection: FromDishka[Connection]):
connection.execute('...')
connection.execute("...")
@@ -10,4 +10,4 @@ class ConnectionProvider(Provider):
def new_connection(self) -> Iterable[Connection]:
conn = sqlite3.connect(":memory:")
yield conn
conn.close()
conn.close()
@@ -4,7 +4,7 @@ from argenta.orchestrator.argparser import ArgSpace
router = Router()
@router.command('info')
@router.command("info")
def connect_handler(response: Response, argspace: FromDishka[ArgSpace]):
print(argspace.get_by_name('type'))
print(argspace.get_by_name("type"))