UNPKG

@amplience/dc-cli

Version:
13 lines (12 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.confirmAllContent = confirmAllContent; const question_helpers_1 = require("../question-helpers"); async function confirmAllContent(action, type, allContent, missingContent) { const question = allContent ? `Providing no ID or filter will ${action} ALL ${type}! Are you sure you want to do this? (y/n)\n` : missingContent ? 'Warning: Some content specified on the log is missing. Are you sure you want to continue? (y/n)\n' : `Are you sure you want to ${action} these ${type}? (y/n)\n`; return await (0, question_helpers_1.asyncQuestion)(question); }