mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 07:12:57 +00:00
* refactor: move terminal core into package * refactor: move terminal module files * fix: clean terminal package CI followups * test: update lint suppression allowlist * fix: ship terminal core runtime aliases
20 lines
734 B
TypeScript
20 lines
734 B
TypeScript
import type { Command } from "commander";
|
|
import { formatDocsLink } from "../../../packages/terminal-core/src/links.js";
|
|
import { theme } from "../../../packages/terminal-core/src/theme.js";
|
|
import { addGatewayServiceCommands } from "./register-service-commands.js";
|
|
|
|
export function registerDaemonCli(program: Command) {
|
|
const daemon = program
|
|
.command("daemon")
|
|
.description("Manage the Gateway service (launchd/systemd/schtasks)")
|
|
.addHelpText(
|
|
"after",
|
|
() =>
|
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/gateway", "docs.openclaw.ai/cli/gateway")}\n`,
|
|
);
|
|
|
|
addGatewayServiceCommands(daemon, {
|
|
statusDescription: "Show service install status + probe connectivity/capability",
|
|
});
|
|
}
|