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