done
This commit is contained in:
1 parent
115fd47bae
commit
76bd7cd645
78 files changed
+5041
-187
No files matched your search
+7
-2
@@ -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,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user