This commit is contained in:
:NoBody: committed 2026-04-29 16:02:43 +08:00
1 parent 365b1db47e
commit 0161480fa2
79 files changed
+5050 -187

No files matched your search

+7 -2
View File
@@ -3,8 +3,13 @@ import { parse } from "https://deno.land/[email protected]/flags/mod.ts";
import { match_sub_command_to_function } from "./cli/match.ts";
const args = parse(Deno.args);
export const cfg = await Deno.readTextFile("./config.json").then((text) =>
JSON.parse(text)
);
if (import.meta.main) {
const sub_command = match_sub_command_to_function(args._ as Array<string>);
await sub_command();
await match_sub_command_to_function(
args._ as Array<string>,
args,
);
}