"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * penguins-eggs
 * lib: select_address_type.ts
 * author: Piero Proietti
 * email: piero.proietti@gmail.com
 * license: MIT
 */
const inquirer = require('inquirer');
async function selectAddressType() {
    const questions = [
        {
            type: 'list',
            name: 'option',
            message: 'Select address type: ',
            choices: ['dhcp', 'static'],
            default: 'dhcp',
        },
    ];
    return new Promise(function (resolve) {
        inquirer.prompt(questions).then(function (options) {
            resolve(options.option);
        });
    });
}
exports.default = selectAddressType;
