resolve

fun resolve(repositories: PackageRepositories, reference: String): PackageTemplate

Fetches a package, validates its template manifest and downloads the template's files.

Return

the resolved template

Parameters

repositories

repositories by scope

reference

reference to the template package, as typed by the user

Throws

if the reference is malformed, the package cannot be fetched, it doesn't have a template manifest, a declared file is missing from the package, the declared document type is unknown, or a file cannot be downloaded