mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
14 lines
308 B
Python
14 lines
308 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...") |