From 6f5241afb5bd1d6a1a8724bf06cc6f205c279402 Mon Sep 17 00:00:00 2001 From: Soccera1 <129828376+Soccera1@users.noreply.github.com> Date: Sat, 18 Jul 2026 09:27:17 +1000 Subject: Refactor to single call --- src/commands/b2sum.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/commands/b2sum.js (limited to 'src/commands/b2sum.js') 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); -- cgit v1.3