Files
discord-clone/node_modules/nuxi/dist/index.mjs
2023-01-03 09:29:04 -06:00

14 lines
348 B
JavaScript

import { m as mri, c as commands } from './shared/nuxi.a865ab6b.mjs';
async function runCommand(command, argv = process.argv.slice(2)) {
const args = mri(argv);
args.clear = false;
const cmd = await commands[command]();
if (!cmd) {
throw new Error(`Invalid command ${command}`);
}
await cmd.invoke(args);
}
export { runCommand };