pub fn run(
all: bool,
package_names: &[String],
yes: bool,
dry_run: bool,
explain: bool,
plan_json: bool,
verbose: bool,
interactive: bool,
) -> Result<()>Expand description
The primary high-level orchestration for the zoi update command.
This function handles:
- Batch Updates: When
--allis 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).
Per-package failures are printed inline as they happen; a single summary with the aggregated counts is printed at the end.
ยงErrors
Returns an error if the package names cannot be expanded.