From 1c139f6998507c3f76565ee316d8738707e2b662 Mon Sep 17 00:00:00 2001 From: Vikram Chand Date: Tue, 19 Mar 2024 12:58:13 +0530 Subject: [PATCH] Updated: completed cms install command --- src/commands/cms/install.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/commands/cms/install.ts b/src/commands/cms/install.ts index 40658f2..b38ce95 100644 --- a/src/commands/cms/install.ts +++ b/src/commands/cms/install.ts @@ -53,9 +53,9 @@ export default class CmsInstall extends Command { let questions = new Questions(); - const inputs = await inquirer.prompt(questions.getVaahCmsVersions()); + this.inputs = await inquirer.prompt(questions.getVaahCmsVersions()); - if(inputs.version) + if(this.inputs.version) { await this.spin(); await this.install(); @@ -94,11 +94,11 @@ export default class CmsInstall extends Command { let repo = 'webreinvent/vaahcms-ready'; if (self.inputs.version === 'VaahCMS 2.x') { repo = 'webreinvent/vaahcms-ready#2.x'; - self.inputs.documentation = "https://docs.vaah.dev/vaahcms-2/"; + self.inputs.documentation = "https://docs.vaah.dev/vaahcms-2x"; //repo = 'https://github.com/webreinvent/vaahcms-ready/archive/2.x.zip'; } if (self.inputs.version === 'VaahCMS 1.x') { - self.inputs.documentation = "https://docs.vaah.dev/vaahcms/"; + self.inputs.documentation = "https://docs.vaah.dev/vaahcms-1x"; repo = 'webreinvent/vaahcms-ready#1.x'; } // @ts-ignore @@ -111,7 +111,8 @@ export default class CmsInstall extends Command { ]); tasks.run().then(() => { this.spinStop(); - }).catch(() => { + }).catch((err = null) => { + console.error(err); this.spinStopWithError(); }); }