pub async fn run<I, T>(args: I) -> ExitCodeExpand description
Parse argv and execute one command. Returns process exit code.
This is the binary entrypoint wrapper (stdin/stdout/stderr are process defaults).
Agent-first: when stdout is not a TTY, JSON is auto-selected unless --format forces human.
ยงLifecycle
sequenceDiagram
participant A as Agent
participant C as docsrs-cli
participant N as crates.io / docs.rs
A->>C: BORN spawn
C->>N: EXECUTE GET
N-->>C: body
C-->>A: stdout envelope
C->>C: FINALIZE flush
C->>C: DIE exit code