sources discover
Read one library file as its adapter's import would read it and say how many records it holds and how many import would add, writing nothing.
Invocation#
lem-cli sources discover <adapter> --path <file>Inputs and options#
- adapter is one name sources lists. The DOI and arXiv adapters (doi, arxiv) take an identifier, not a file, so they are answered without --path; every other adapter needs --path <file>.
Output and state#
Prints the adapter's row with path. For a library format the answer adds records, papers (records naming an arXiv paper), found (papers above zero) and imports_whole (every record names an arXiv paper, which is when import adds the library); a file that is no library of the format is answered as why_not, not refused. A project adapter answers why_not, because import reads a project where it is.
A kind D adapter answers its row with why and remedy. reported says whether the discovery's rounded counts were sent, and why not when they were not (no answer to share yet, the answer no, no reporting credential, or no onboarding route Stado resolves). The library itself is never read into Lem.
Refusals#
- An adapter sources does not list refuses with sources-adapter-unknown, naming every adapter, exit 2.
- A file adapter without --path refuses with sources-path-missing, exit 2.