11 lines
329 B
TypeScript
11 lines
329 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);
|
|
|
|
if (import.meta.main) {
|
|
const sub_command = match_sub_command_to_function(args._ as Array<string>);
|
|
await sub_command();
|
|
}
|