Expand description
doiget bib subcommand — emit BibTeX from the local store, offline.
Three shapes (issue #305):
bib <ref>— one stored entry (the original behavior).bib --all— every entry in the store as one deduplicated.bib.bib --from-file <FILE>— the refs listed in FILE, each rendered from the store; entries not present are skipped and counted toward a non-zero exit.
All shapes are pure store reads — no network — so “fetch a batch, then
emit a complete .bib” is a single offline command. The actual
rendering lives in doiget_core::store::render::to_bibtex so the CLI
and the doiget_bibtex_export MCP tool share one implementation.
Functions§
- run
- Run the
bibsubcommand against the configured store.