mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
// OC Path module implements cli registration behavior.
|
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
|
export function registerOcPathCli(api: OpenClawPluginApi): void {
|
|
api.registerCli(
|
|
async ({ program }) => {
|
|
const { registerPathCli } = await import("./src/cli.js");
|
|
registerPathCli(program);
|
|
},
|
|
{
|
|
descriptors: [
|
|
{
|
|
name: "path",
|
|
description: "Inspect and edit workspace files via oc:// paths",
|
|
hasSubcommands: true,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
}
|