pub fn plan(
dep: Dependency,
host: &Host,
user: Option<&str>,
elevation: Elevation,
) -> Result<Vec<Step>, Refusal>Expand description
The install of dep on host, whatever its OS: macOS’s Homebrew formulae and vendors’ disk
images and packages (installed as an administrator elevation‘s way), Windows’ winget packages
and elevated installers, or Linux’s root script for the user user (joined to the groups a
tool’s devices need), its root steps run elevation’s way with this process’s proxy
(linux::proxy_assignments). The one call a caller plans an
install with: which OS’s plan applies is the host’s, never the OS the crate is built for.
§Errors
Refusal: why it can’t be installed there (Refusal::NotHere first, before the package
manager is looked at).
What it asks of its user (interactions) is the plan’s last step’s, the one that installs
the tool (one before it only prepares: a Homebrew tap trusted).