@flowlab/all
Version:
A cool library focusing on handling various flows
16 lines (15 loc) • 434 B
text/typescript
// event.ts - 处理 `flowlab event` 模块的命令
// 使用 process.argv 手动解析命令行输入
export const handleEventCommands = (command: string) => {
switch (command) {
case 'emit':
console.log('Emitting an event...');
break;
case 'listen':
console.log('Listening for events...');
break;
default:
console.log(`Unknown command for event module: ${command}`);
break;
}
};