This commit is contained in:
2025-11-07 21:25:35 +03:00
parent 16e7cc21fb
commit 8edd59c1b8
11 changed files with 48 additions and 78 deletions
+3 -9
View File
@@ -1,16 +1,10 @@
from argenta import App, Orchestrator
from argenta.app import PredefinedMessages, StaticDividingLine
from argenta.app import PredefinedMessages
from argenta.app.dividing_line.models import StaticDividingLine, DynamicDividingLine
from mock.mock_app.routers import work_router
def print_hello(entity: str):
with open('hello.txt', 'a') as file:
file.write(f'printer called: {entity}\n')
print(entity)
app: App = App(
dividing_line=StaticDividingLine(),
override_system_messages=True,
print_func=print_hello
dividing_line=DynamicDividingLine('^'),
)
orchestrator: Orchestrator = Orchestrator()
+3 -2
View File
@@ -1,8 +1,9 @@
from argenta import Router, Response, Command
work_router: Router = Router(title="Base points:")
work_router: Router = Router(title="Base points:", disable_redirect_stdout=True)
@work_router.command(Command('hello', description="Hello, world!"))
def command_help(response: Response):
print('Hello, world!')
c = input("Enter your name: ")
print(f"Hello, {c}!")