From c11e17573334dfb487a8e1cc25fa84fa9e138f5c Mon Sep 17 00:00:00 2001 From: Lily <129828376+Soccera1@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:12:21 +1000 Subject: Refactor coreutils into single-call command modules (#1) * Refactor to single call --- src/commands/sha384sum.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/commands/sha384sum.js (limited to 'src/commands/sha384sum.js') diff --git a/src/commands/sha384sum.js b/src/commands/sha384sum.js new file mode 100644 index 0000000..4f955e0 --- /dev/null +++ b/src/commands/sha384sum.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("sha384sum", hashCommand("sha384"), (args) => hashMetaOption("sha384sum", args)); +export default singleCall; + +if (import.meta.main) await runAsMain(singleCall); -- cgit v1.3