pub fn cli_entry(args: impl IntoIterator<Item = OsString>) -> ExitCodeExpand description
Run the rtk CLI with a caller-supplied argv and return its ExitCode.
args is a full argv: clap skips the first item as the program name, so
hosts must pass a placeholder (e.g. "rtk") ahead of the real arguments —
["rtk", "git", "status"], not ["git", "status"].
§Process exit
This dispatch is exec-like, not a pure function call: several paths
terminate the process directly instead of returning. --help and
--version exit after printing, parse errors on rtk meta-commands exit
with clap’s error, and filters propagate a failing child command’s exit
code via std::process::exit. Hosts must not rely on code running after
this call (cleanup, atexit, destructors).