mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 06:30:44 +00:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
import { configCommands } from "./fixtures/config.mjs";
|
|
import { pluginCommands } from "./fixtures/plugins.mjs";
|
|
import { workspaceCommands } from "./fixtures/workspace.mjs";
|
|
|
|
const [command, ...args] = process.argv.slice(2);
|
|
|
|
const handler = {
|
|
...pluginCommands,
|
|
...configCommands,
|
|
...workspaceCommands,
|
|
}[command];
|
|
if (!handler) {
|
|
throw new Error(`unknown fixture command: ${command}`);
|
|
}
|
|
|
|
handler(args);
|