File size: 287 Bytes
fc93158 | 1 2 3 4 5 6 7 8 9 10 11 | 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" });
}
|