const workerCmd = require('./cli.worker');
const cmds = new Map([
['worker', workerCmd],
]);
const cmd = process.argv[1];
if (cmds.has(cmd)) {
cmds.get(cmd)?.exec();
} else {
throw new Error('命令不存在');
}