aboutsummaryrefslogtreecommitdiff
path: root/src/commands/sm3sum.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/sm3sum.js')
-rw-r--r--src/commands/sm3sum.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands/sm3sum.js b/src/commands/sm3sum.js
new file mode 100644
index 0000000..73cd7e6
--- /dev/null
+++ b/src/commands/sm3sum.js
@@ -0,0 +1,9 @@
+#!/usr/bin/env bun
+
+import { hashCommand, hashMetaOption } from "../shared/hash.js";
+import { defineCommand, runAsMain } from "../shared/command.js";
+
+const singleCall = defineCommand("sm3sum", hashCommand("sm3"), (args) => hashMetaOption("sm3sum", args));
+export default singleCall;
+
+if (import.meta.main) await runAsMain(singleCall);