pub async fn run() -> i32Expand description
Parse Cli from std::env::args() and dispatch to the requested subcommand.
Exit codes:
0— success.1— connection / I/O / network failure (no server, DNS, TLS, etc.).2— protocol / parse failure (invalid--server, server returned an error status, malformed--json, or anyclapargument error).
Clap argument parsing errors are routed to clap’s default error
printer (which itself exits 2), so user-facing misuse is consistent
with the broader CLI convention.