cmaize.user_api/dependencies/impl_/get_package_manager

cmaize.user_api/dependencies/impl_/get_package_manager._fob_get_package_manager(_gpm_pm _gpm_project _gpm_pm_name)

Wraps the process of retrieving a package manager from a project.

At the moment it is somewhat non-trivial to go from a package maanger name, e.g., cmake or pip to an actual ProjectManager object which has been registered with a project. This function wraps that process.

Parameters:
  • pm (PackageManager*) – The variable the package manager will be assigned to.

  • project (CMaizeProject) – The project that the package manager will be registered with.

  • pm_name (desc) – The name of the package manager to retrieve.

Raises:

UNKNOWN_PM – When pm_name does not correspond to a known package manager. Strong throw guarantee.