aboutsummaryrefslogtreecommitdiff
path: root/src/commands/md5sum.js
diff options
context:
space:
mode:
authorSoccera1 <[email protected]>2026-07-18 09:27:17 +1000
committerSoccera1 <[email protected]>2026-07-18 09:27:17 +1000
commit6f5241afb5bd1d6a1a8724bf06cc6f205c279402 (patch)
tree2aa852e968f6b89f2c8458333ce3e7c38b3c2450 /src/commands/md5sum.js
parenta753f669c9bedfccb9f7f400da018bb487dca5d0 (diff)
downloadbnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.tar.gz
bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.zip
Refactor to single call
Diffstat (limited to 'src/commands/md5sum.js')
-rw-r--r--src/commands/md5sum.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands/md5sum.js b/src/commands/md5sum.js
new file mode 100644
index 0000000..9af992c
--- /dev/null
+++ b/src/commands/md5sum.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("md5sum", hashCommand("md5"), (args) => hashMetaOption("md5sum", args));
+export default singleCall;
+
+if (import.meta.main) await runAsMain(singleCall);