Files
wpep/tools/gp/main.ts
T
2026-04-29 16:02:43 +08:00

16 lines
408 B
TypeScript

// deno-lint-ignore no-import-prefix
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) {
await match_sub_command_to_function(
args._ as Array<string>,
args,
);
}