pub fn run_from_env() -> Result<i32>Expand description
Parse process args, detect current dir, dispatch, return exit code.
When the COMPLETE environment variable is set (e.g. COMPLETE=zsh),
this function writes shell completions to stdout and exits without
running the normal command dispatch.
ยงErrors
Returns an error when reading current dir fails, project detection fails, command execution fails, or writing clap output fails.
Argument parsing/help/version flows are rendered by clap and returned as an exit code instead of terminating the host process.