Module preflight

Module preflight 

Source
Expand description

Preflight summary computation helpers.

The routines in this module gather package metadata, estimate download and install deltas, and derive risk heuristics used to populate the preflight modal. All command execution is abstracted behind CommandRunner so the logic can be exercised in isolation.

Structs§

PreflightSummaryOutcome
What: Outcome of preflight summary computation.
SystemCommandRunner
What: Real command runner backed by std::process::Command.

Enums§

CommandError
What: Error type capturing command spawning, execution, and decoding failures.

Traits§

CommandRunner
What: Abstract command execution interface used for spawning helper binaries such as pacman.

Functions§

compute_preflight_summary
What: Compute preflight summary data using the system command runner.
compute_preflight_summary_with_runner
What: Compute preflight summary data using a custom command runner.