"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const inquirer_1 = __importDefault(require("inquirer"));
exports.default = async (questions) => inquirer_1.default
    .prompt(questions)
    .catch((error) => {
    if (error.isTtyError) {
        console.error(new Error('Unsupported Environment'));
    }
    else {
        console.error(error);
    }
    process.exit(1);
});
