mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 23:40:45 +00:00
11 lines
287 B
TypeScript
11 lines
287 B
TypeScript
import { Command } from "commander";
|
|
|
|
export async function runRegisteredCli(params: {
|
|
register: (program: Command) => void;
|
|
argv: string[];
|
|
}): Promise<void> {
|
|
const program = new Command();
|
|
params.register(program);
|
|
await program.parseAsync(params.argv, { from: "user" });
|
|
}
|