Skip to main content

package_manager

Function package_manager 

Source
pub async fn package_manager(cx: &Context) -> PackageManager
Expand description

The context’s host’s package manager (crate::Host::packages) and whether it answers its --version; when the host has none, the one its OS usually has (usual_packages), not installed. One that started but ran out of the probe’s time is installed, its version unsaid: winget’s first run in a session can take that long (Windows starts its App Installer package), and a setup would otherwise send the user to the Store for a winget they have.