Function brane_shr::utilities::create_package_index_from

source ·
pub fn create_package_index_from(path: impl AsRef<Path>) -> PackageIndex
Expand description

Collects all .yml files in the given folder as a single PackageIndex.

Note that this function is mostly for testing purposes. Typically, using functions directly on PackageIndex provides a more canonical experience (mostly relating to error handling).

§Arguments

  • path: The path to load the packages in.

§Returns

A PackageIndex with a collection of all package files in the given folder.

§Panics

This function may panic if any of the steps fail.