From 50d186adc222a24bc28b61ab6ac95be5f202859a Mon Sep 17 00:00:00 2001 From: florianow <64468897+florianow@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:51:27 +0100 Subject: [PATCH] chore: rename cloneLatestHub to cloneHub --- src/commands/compliance/import.command.ts | 2 +- src/commands/kit/import.command.ts | 2 +- src/model/CollieHub.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/compliance/import.command.ts b/src/commands/compliance/import.command.ts index 52e23d2..175fa1f 100644 --- a/src/commands/compliance/import.command.ts +++ b/src/commands/compliance/import.command.ts @@ -41,7 +41,7 @@ export function registerImportCmd(program: TopLevelCommand) { } logger.progress("updating local cache of collie hub from " + hub.url); - const hubDir = await hub.cloneLatestHub(); + const hubDir = await hub.cloneHub(); id = id || (await promptForComplianceFrameworkId(hubDir)); diff --git a/src/commands/kit/import.command.ts b/src/commands/kit/import.command.ts index 70e93ec..bd64f37 100644 --- a/src/commands/kit/import.command.ts +++ b/src/commands/kit/import.command.ts @@ -43,7 +43,7 @@ export function registerImportCmd(program: TopLevelCommand) { } logger.progress("updating local cache of hub modules from " + hub.url); - const hubDir = await hub.cloneLatestHub(); + const hubDir = await hub.cloneHub(); id = id || (await promptForKitModuleId(logger, hubDir)); diff --git a/src/model/CollieHub.ts b/src/model/CollieHub.ts index 7968bf3..57e52d3 100644 --- a/src/model/CollieHub.ts +++ b/src/model/CollieHub.ts @@ -44,7 +44,7 @@ export class CollieHub { await fs.copy(srcDir, frameworkDestDir, { overwrite: overwrite }); } - async cloneLatestHub() { + async cloneHub() { const hubCacheDir = this.repo.resolvePath(...this.hubCacheDirPath); // we do keep a git clone of the repo locally because copying on the local FS is much faster than downloading and