aboutsummaryrefslogtreecommitdiff
path: root/src/commands/b2sum.js
blob: bc1c0f1fe6602499ea0c863000ec9aa9a2220c92 (plain)
1
2
3
4
5
6
7
8
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);