Load credentials with API registries from a filesystem directory override.
(
credentials_path: &Path,
registry_dir: &Path,
)
| 354 | |
| 355 | /// Load credentials with API registries from a filesystem directory override. |
| 356 | pub fn load_credential_set_from_dir( |
| 357 | credentials_path: &Path, |
| 358 | registry_dir: &Path, |
| 359 | ) -> Result<CredentialSet> { |
| 360 | let creds = load_credentials(credentials_path)?; |
| 361 | let api_registries = load_api_registries_from_dir(registry_dir)?; |
| 362 | Ok(CredentialSet { |
| 363 | credentials: creds, |
| 364 | api_registries, |
| 365 | }) |
| 366 | } |
| 367 | |
| 368 | #[cfg(test)] |
| 369 | mod tests { |
no test coverage detected