Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/input/confirmation-routines.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ async function confirm_Async(question) {
* @throws {UserDidNotConfirmError} - If the user does not confirm the operation parameters.
*/
async function confirmOperationOptionsOrExit_Async(migrationOptions) {
if(process.env.NON_INTERACTIVE == 'true') {
return;
}
const migrationOptionsStr = util.inspect(migrationOptions, {depth: null, colors: true});
const migrationPrompt =
`❗️WARNING: This script will perform the bulk operation with the following parameters:
Expand All @@ -61,4 +64,4 @@ Are you sure you want to proceed?`;
module.exports = {
confirmOperationOptionsOrExit_Async,
UserDidNotConfirmError
}
}