pub fn resolve_package(cwd: &Path, spec: &str) -> Result<PackageRoot, String>
Validate and load one package spec. Used by rpi package add before the spec is persisted to settings.
rpi package add