aboutsummaryrefslogtreecommitdiff
path: root/deno/tools/yargs.ts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-28 01:49:17 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-28 01:49:17 +0800
commit0e122ef17669cd7fa9e443b56a55d5bec5e63b57 (patch)
treebb3dd968897d5defb9512f6d44d148d205d10741 /deno/tools/yargs.ts
parent808d56b6195a1cdb8aea125084938529e5e29cc1 (diff)
downloadcrupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.tar.gz
crupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.tar.bz2
crupest-0e122ef17669cd7fa9e443b56a55d5bec5e63b57.zip
deno: refactor tools.
Diffstat (limited to 'deno/tools/yargs.ts')
-rw-r--r--deno/tools/yargs.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/deno/tools/yargs.ts b/deno/tools/yargs.ts
new file mode 100644
index 0000000..eaa7803
--- /dev/null
+++ b/deno/tools/yargs.ts
@@ -0,0 +1,12 @@
+// @ts-types="npm:@types/yargs"
+export { default } from "yargs";
+export * from "yargs";
+
+import { CommandModule } from "yargs";
+export function defineYargsModule<T, U>(
+ module: CommandModule<T, U>,
+): CommandModule<T, U> {
+ return module;
+}
+
+export const DEMAND_COMMAND_MESSAGE = "No command is specified";