aboutsummaryrefslogtreecommitdiff
path: root/src/commands/b2sum.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/b2sum.js')
-rw-r--r--src/commands/b2sum.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands/b2sum.js b/src/commands/b2sum.js
new file mode 100644
index 0000000..bc1c0f1
--- /dev/null
+++ b/src/commands/b2sum.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("b2sum", hashCommand("blake2b512"), (args) => hashMetaOption("b2sum", args));
+export default singleCall;
+
+if (import.meta.main) await runAsMain(singleCall);