diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-28 01:49:17 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-28 01:49:17 +0800 |
commit | 0e122ef17669cd7fa9e443b56a55d5bec5e63b57 (patch) | |
tree | bb3dd968897d5defb9512f6d44d148d205d10741 /deno/tools/main.ts | |
parent | 808d56b6195a1cdb8aea125084938529e5e29cc1 (diff) | |
download | crupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.tar.gz crupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.tar.bz2 crupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.zip |
deno: refactor tools.
Diffstat (limited to 'deno/tools/main.ts')
-rw-r--r-- | deno/tools/main.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/deno/tools/main.ts b/deno/tools/main.ts new file mode 100644 index 0000000..897350c --- /dev/null +++ b/deno/tools/main.ts @@ -0,0 +1,14 @@ +import yargs, { DEMAND_COMMAND_MESSAGE } from "./yargs.ts"; +import vm from "./vm.ts"; +import service from "./service.ts"; + +if (import.meta.main) { + await yargs(Deno.args) + .scriptName("crupest") + .command(vm) + .command(service) + .demandCommand(1, DEMAND_COMMAND_MESSAGE) + .help() + .strict() + .parse(); +} |