Expand description
Subcommand implementations for the doiget CLI.
Each module corresponds to a single clap subcommand declared in
main.rs. The dispatch table in main.rs calls run(...) on the
matching module. Subcommands return anyhow::Result<()>; any error
surfaces via the CLI’s top-level error reporter (stderr).
§Phase 1 surface (so far)
audit_log—doiget audit-log --verifyrecomputes the SHA-256 hash chain on the provenance log and reports any mismatches.batch—doiget batch <path>multi-ref orchestrator (rate-bounded).bib—doiget bib <ref>BibTeX exporter (Phase 2 starter).cite—doiget cite <ref>live-resolve BibTeX (doi2bib-style).config—doiget config show/path/doctor.csl—doiget csl <ref>exports a stored entry as CSL JSON 1.0.fetch—doiget fetch <ref>orchestrator (arXiv E2E + DOI metadata-only).info— prints a stored entry’sMetadataas TOML on stdout.list_recent— prints up to N most-recently-fetched entries.search— case-insensitive substring search over stored metadata.
Other subcommands (serve) land in separate PRs.
Modules§
- audit_
log doiget audit-log --verify— re-validate the SHA-256 hash chain.- batch
doiget batch <path>— multi-ref orchestrator.- bib
doiget bib <ref>subcommand — emit a BibTeX entry for a stored entry.- capabilities
doiget capabilities— single-shot inventory JSON for LLM cold-boot (#214).- cite
doiget cite <ref>subcommand — resolve a DOI / arXiv reference to a clean BibTeX entry on stdout, adoi2bib-style citation helper.- config
doiget config <action>— config introspection.- csl
doiget csl <ref>— emit a CSL JSON 1.0 array for a stored Metadata.- fetch
doiget fetch <ref>subcommand.- info
doiget info <ref>subcommand — read-only metadata inspection.- lint
doiget lint <path>— structural validation of a BibTeX bibliography, independent of DOI resolution (doiget verify’s job).- list_
recent doiget list-recent [--limit=N]subcommand — read-only most-recent listing.- output
- Output-mode resolution for the
doigetCLI (ADR-0017, #144; Amendment 1 = #219/#220). - provenance
doiget provenance migrate— one-shot v1 → v2 migration tool (ADR-0024,docs/PROVENANCE_LOG.md§“Schema migration”).- resolve_
citation doiget resolve-citationanddoiget batch-resolve-citationssubcommand.- search
doiget search <query>subcommand — case-insensitive substring search over stored metadata.- verify
doiget verify <path>— check that every DOI / arXiv reference in a bibliography file resolves to real metadata, WITHOUT downloading any PDF or writing to the store.- version
doiget version [--check]— print the current version and optionally query GitHub Releases for the latest stable tag.