Expand description
Library CLI entrypoints — the canonical implementation lives in
run_with_store_path; run and run_argv are layered wrappers.
The three entrypoints together form the public library surface for the
xr CLI dispatcher:
run_argv: readsstd::env::args_os()and uses real stdio. The binary calls this frommain.run: takes args + writers; resolves the default token-store path.run_with_store_path: the canonical implementation. Takes args, writers, and an explicit token-store path. Tests pass aTempDir-rooted path so they never touch the real~/.xurl.
All three return a structured exit code per
crate::error::XurlError::exit_code, matching the binary’s exit-code
contract. They never call process::exit.
Functions§
- run
- Runs the
xrCLI with caller-supplied args + writers. - run_
argv - Runs the
xrCLI usingstd::env::args_os()and real stdio. - run_
with_ store_ path - Canonical CLI entrypoint — runs the
xrdispatcher with explicit writers and an explicit token-store path.