pub fn run_view<P: AsRef<Path>>(
commit_range: &str,
repo_path: Option<P>,
) -> Result<String>Expand description
Runs the view logic and returns the YAML output as a String.
When repo_path is Some, opens the repository at that path; otherwise
opens the repository at the current working directory. Callers that print
to stdout (the CLI) and callers that return the string (the MCP server)
share this implementation.