UNPKG

@dlillyatx/dc-cli

Version:
14 lines (13 loc) 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.confirmArchive = void 0; const question_helpers_1 = require("../question-helpers"); async function confirmArchive(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 question_helpers_1.asyncQuestion(question); } exports.confirmArchive = confirmArchive;