mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 08:28:34 +00:00
CLI: fix lazy maintenance command registration (#16374)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 29d7cca674
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
committed by
GitHub
parent
5ba72bd9bf
commit
7d4078c704
@@ -57,7 +57,15 @@ const coreEntries: CoreCliEntry[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
commands: [{ name: "maintenance", description: "Maintenance commands" }],
|
||||
commands: [
|
||||
{ name: "doctor", description: "Health checks + quick fixes for the gateway and channels" },
|
||||
{ name: "dashboard", description: "Open the Control UI with your current token" },
|
||||
{ name: "reset", description: "Reset local config/state (keeps the CLI installed)" },
|
||||
{
|
||||
name: "uninstall",
|
||||
description: "Uninstall the gateway service + local data (CLI remains)",
|
||||
},
|
||||
],
|
||||
register: async ({ program }) => {
|
||||
const mod = await import("./register.maintenance.js");
|
||||
mod.registerMaintenanceCommands(program);
|
||||
|
||||
Reference in New Issue
Block a user