From acabe003dbdb58f09b838471b3d87cb288aebdc0 Mon Sep 17 00:00:00 2001 From: dmh <5150636+dmh@users.noreply.github.com> Date: Thu, 5 Jan 2023 15:59:06 +0200 Subject: [PATCH] [TASK] add the possibility to override themeConfirm prompt to use for automations --- lib/hubspot/helpers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/hubspot/helpers.js b/lib/hubspot/helpers.js index 9fa5f9e..47f36f1 100644 --- a/lib/hubspot/helpers.js +++ b/lib/hubspot/helpers.js @@ -4,6 +4,12 @@ import { globals } from '../config/globals.js' import prompts from 'prompts' import chalk from 'chalk' +if (process.argv.slice(2)[0] === '--themeConfirm=true') { + const themeConfirmArr = process.argv.slice(2)[0].slice(2).split('=') + const themeConfirmObj = { [themeConfirmArr[0]]: themeConfirmArr[1] } + prompts.override(themeConfirmObj) +} + /** * @summary show prompt to confirm theme name * @async