Skip to main content

run

Function run 

Source
pub fn run(
    all: bool,
    package_names: &[String],
    yes: bool,
    dry_run: bool,
    explain: bool,
    plan_json: bool,
    interactive: bool,
) -> Result<()>
Expand description

The primary high-level orchestration for the zoi update command.

This function handles:

  • Batch Updates: When --all is specified, it scans all installed packages.
  • Targeted Updates: Updates specific packages provided by name.
  • Advisory Deltas: Calculates and displays changes in security vulnerabilities.
  • Cleanup: Automatically removes old versions after a successful upgrade (if rollbacks are not required).