Files
Argenta/docs/code_snippets/command/snippet5.py
T
2025-11-29 11:51:59 +03:00

11 lines
285 B
Python

from argenta import Router, Command, Response
router = Router(title="System")
@router.command(Command(
"shutdown",
description="Shutdown the system",
aliases=["poweroff", "halt", "stop"]
))
def handle_shutdown(response: Response):
print("Shutting down the system...")