Function upm_lib::read_config_dirs [] [src]

pub fn read_config_dirs<P: AsRef<Path>>(
    directories: Vec<P>,
    exceptions: &ManagerSpecifier
) -> Vec<PackageManager>

Read the configuration directories listed from highest precedence to lowest with the option to explicitly exclude or include certain package managers. If the include variant of ManagerSpecifier is used then only the specified packagemanager names will be returned if they exist.

Panics

If one of the directories can't be read. This should be changed soon to avoid panicking and instead give feedback on what directories and files were and were not read.