get_package_manager

Function get_package_manager 

Source
pub fn get_package_manager() -> Result<PackageManager, Box<dyn Error>>
Expand description

Detects the package manager used by the current system.

This function checks for the existence of specific package manager executables to determine which one is available on the system.

ยงReturns

Returns a Result containing the detected PackageManager or an error if no supported package manager is found.