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
--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).