fix: remove the "mc stop" meant to be in the container, but not implemented

This commit is contained in:
2025-04-09 11:40:33 -06:00
parent 3a182fd265
commit 4f54c0fbe7
2 changed files with 0 additions and 17 deletions

View File

@@ -195,8 +195,6 @@ mc session close <id>
# Connect to an existing session
mc session connect <id>
# Stop the current session (from inside the container)
mc stop
```
### Remote Management

View File

@@ -411,21 +411,6 @@ def session_logs(
console.print(logs)
@app.command()
def stop() -> None:
"""Stop the current MC session (from inside the container)"""
# Check if running inside a container
if not os.path.exists("/.dockerenv"):
console.print(
"[red]This command can only be run from inside a MC container[/red]"
)
return
# Stop the container from inside
console.print("Stopping the current session...")
os.system("kill 1") # Send SIGTERM to PID 1 (container's init process)
@driver_app.command("list")
def list_drivers() -> None:
"""List available MC drivers"""