pub fn run_update(
repo_info: &RepoInfo,
current_version: &str,
version: Option<&str>,
assume_yes: bool,
install_dir: Option<&Path>,
) -> i32Expand description
Run update command to install latest or specified version.
Returns exit code: 0 if successful, 1 on error, 2 if already up-to-date.
§Arguments
repo_info- Repository information for GitHub integrationcurrent_version- Current version of the toolversion- Optional specific version to installassume_yes- Automatically confirm prompts and reinstall even if already up-to-dateinstall_dir- Optional custom installation directory
§Panics
May panic if stdout flush fails or stdin read fails during user confirmation.