This commit is contained in:
yinsx
2025-12-20 17:14:43 +08:00
parent 7a6a55b535
commit 29a7a1e626
16 changed files with 172 additions and 724 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/env node
import color from "picocolors";
import { showMainMenu } from "./lib/menu.js";
import { checkUpdate } from "./lib/update.js";
await checkUpdate();
while (true) {
const selected = await showMainMenu();
@ -9,8 +12,7 @@ while (true) {
console.log(color.cyan("\n正在启动: " + selected.name + "...\n"));
try {
const tool = await import(selected.module);
const result = await tool.run();
const result = await selected.tool.run();
if (result === "back") continue;
break;
} catch (err) {