diff options
| author | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
|---|---|---|
| committer | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
| commit | 6f5241afb5bd1d6a1a8724bf06cc6f205c279402 (patch) | |
| tree | 2aa852e968f6b89f2c8458333ce3e7c38b3c2450 /src/commands/sha1sum.js | |
| parent | a753f669c9bedfccb9f7f400da018bb487dca5d0 (diff) | |
| download | bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.tar.gz bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.zip | |
Refactor to single call
Diffstat (limited to 'src/commands/sha1sum.js')
| -rw-r--r-- | src/commands/sha1sum.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands/sha1sum.js b/src/commands/sha1sum.js new file mode 100644 index 0000000..c875458 --- /dev/null +++ b/src/commands/sha1sum.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("sha1sum", hashCommand("sha1"), (args) => hashMetaOption("sha1sum", args)); +export default singleCall; + +if (import.meta.main) await runAsMain(singleCall); |
