Skip to main content

run

Function run 

Source
pub fn run(input: String, mode: OutputMode) -> Result<()>
Expand description

Run the info subcommand against the configured store.

input is the user-supplied ref string (e.g. "10.1234/example", "arxiv:2401.12345", or any of the schemes accepted by Ref::parse).

On success, the entry’s Metadata is written to stdout as TOML. On a missing entry, the function returns an error so the CLI exits non-zero — the caller (a shell pipeline) can distinguish “entry not in store” from “entry was empty”.