Skip to content

Commit

Permalink
[TASK] add the possibility to override themeConfirm prompt to use for…
Browse files Browse the repository at this point in the history
… automations
  • Loading branch information
dmh committed Jan 5, 2023
1 parent 35b54bc commit acabe00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/hubspot/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acabe00

Please sign in to comment.