mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:00:45 +00:00
20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
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,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
}
|