Skip to main content

run_info

Function run_info 

Source
pub fn run_info<P: AsRef<Path>>(
    base_branch: Option<&str>,
    repo_path: Option<P>,
) -> Result<String>
Expand description

Runs the info logic and returns the repository YAML as a String.

Shared by the CLI (which prints the result) and the MCP server (which returns it as tool content). When repo_path is Some, opens the repository at that path; otherwise opens at the current working directory. base_branch defaults to main or master when omitted.