docs: add CLI documentation section with translations and code snippets; refactor mock/ to examples/, improve CLI module (bug fixes, DX, error handling)

This commit is contained in:
2026-07-25 19:22:04 +03:00
parent 311b312ab4
commit 6b9bea155f
21 changed files with 824 additions and 219 deletions
+16
View File
@@ -0,0 +1,16 @@
from argenta import App, Orchestrator
from argenta.command import Router, Command, Response
router = Router(title="Example")
@router.command(Command("hello", description="Say hello"))
def hello_handler(response: Response):
print("Hello, world!")
app = App()
app.include_router(router)
orchestrator = Orchestrator()
if __name__ == "__main__":
orchestrator.run_repl(app)