mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 22:31:34 +00:00
* refactor(matrix): split CLI command groups * refactor(matrix): keep CLI helpers private * refactor(matrix): retain profile result type contract
23 lines
1001 B
TypeScript
23 lines
1001 B
TypeScript
// Matrix plugin module implements cli behavior.
|
|
import type { Command } from "commander";
|
|
import { registerMatrixAccountCommands } from "./cli-account.js";
|
|
import { registerMatrixDeviceCommands } from "./cli-devices.js";
|
|
import { registerMatrixDirectCommands } from "./cli-direct.js";
|
|
import { registerMatrixEncryptionCommands } from "./cli-encryption.js";
|
|
import { registerMatrixProfileCommands } from "./cli-profile.js";
|
|
import { registerMatrixVerificationCommands } from "./cli-verification.js";
|
|
|
|
export function registerMatrixCli(params: { program: Command }): void {
|
|
const root = params.program
|
|
.command("matrix")
|
|
.description("Matrix channel utilities")
|
|
.addHelpText("after", () => "\nDocs: https://docs.openclaw.ai/channels/matrix\n");
|
|
|
|
registerMatrixAccountCommands(root);
|
|
registerMatrixProfileCommands(root);
|
|
registerMatrixDirectCommands(root);
|
|
registerMatrixEncryptionCommands(root);
|
|
registerMatrixVerificationCommands(root);
|
|
registerMatrixDeviceCommands(root);
|
|
}
|