OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-proto-peer / bin / rebuild-did.js

10 lines · javascript ref:
// rebuild-did — thin wrapper. Also available as `hyper-proto-peer rebuild-did <did>` (index.js dispatch).
// Exports a hosted DID's authoritative CAR for a fresh notary-revival rebuild. See lib/rebuild-did.js.
//
//   bare bin/rebuild-did.js <did> [--storage <path>]
import '../lib/bare-globals.js'
import { rebuildDidCommand } from '../lib/rebuild-did.js'

const code = await rebuildDidCommand(globalThis.Bare.argv.slice(2))
globalThis.Bare.exit(code)