"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDatabaseOpts = void 0;
const inquirer_1 = __importDefault(require("inquirer"));
async function getDatabaseOpts(namespace) {
    const suggestedDbName = namespace.replace('@', '');
    const { DB_HOST, DB_NAME, DB_USER, DB_PASS } = await inquirer_1.default.prompt([
        {
            name: 'DB_HOST',
            message: 'What is your database host?',
            default: 'localhost',
        },
        {
            name: 'DB_NAME',
            message: 'Whats the name of your local database?',
            default: suggestedDbName,
        },
        {
            name: 'DB_USER',
            message: 'Local database user:',
            default: 'root',
        },
        {
            name: 'DB_PASS',
            message: 'Local database password:',
            default: 'root',
        },
    ]);
    return { DB_HOST, DB_NAME, DB_USER, DB_PASS };
}
exports.getDatabaseOpts = getDatabaseOpts;
