Skip to main content

Module csl

Module csl 

Source
Expand description

doiget csl — emit CSL JSON 1.0 from the local store, offline.

Three shapes (parity with bib, issue #305):

  • csl <ref> — a single-element CSL JSON array for one stored entry.
  • csl --all — every store entry as one deduplicated CSL JSON array.
  • csl --from-file <FILE> — the refs listed in FILE (plain refs / CSL-JSON / BibTeX), each rendered from the store; missing entries are skipped and counted toward a non-zero exit.

All shapes are pure store reads — no network. Rendering lives in doiget_core::store::render::to_csl_array so the CLI and the doiget_csl_export MCP tool share one implementation.

Functions§

run
Run the csl subcommand against the configured store.