"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.confirm = confirm;

var _enquirer = require("enquirer");

var _format = require("./format");

/**
 * External dependencies
 */

/**
 * Internal dependencies
 */

/* eslint-disable no-duplicate-imports */

/* eslint-enable no-duplicate-imports */
async function confirm(values, message) {
  console.log((0, _format.keyValue)(values));
  const c = await (0, _enquirer.prompt)({
    type: 'confirm',
    name: 'confirm',
    message: message,
    default: false
  });
  return c.confirm;
}