diff options
| author | Lily <[email protected]> | 2026-07-28 16:12:21 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-28 16:12:21 +1000 |
| commit | c11e17573334dfb487a8e1cc25fa84fa9e138f5c (patch) | |
| tree | e91dbd19b524f9432da6bcb86b1fc193e0d02e26 /src/commands/b2sum.js | |
| parent | 6a2f098e72e71437154ec00506e8e736aa8e1026 (diff) | |
| download | bnu-c11e17573334dfb487a8e1cc25fa84fa9e138f5c.tar.gz bnu-c11e17573334dfb487a8e1cc25fa84fa9e138f5c.zip | |
Refactor coreutils into single-call command modules (#1)
* Refactor to single call
Diffstat (limited to 'src/commands/b2sum.js')
| -rw-r--r-- | src/commands/b2sum.js | 9 |
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); |
