function askQuestion() {
    inquirer.prompt([
        {
            message: "What would you like to do next?",
            type: "list",
            name: "question",
            choices: ["Add an Engineer", "Add an Intern", "Finish building my team"]
        }
    ]).then(answers => {
        switch (answers.question) {
            case "Add an Engineer":
                console.log(ck.blue('Add an Engineer'));
                askID('Engineer');
                break;
            case "Add an Intern":
                console.log(ck.blue('Add an Intern'));
                askID('Intern');
                break;
            case "Finish building my team":
                console.log(ck.blue('Finish building my team'));
                generateHTML();
                break;
            default:
                break;
        }
    })
}
// Menu to choose which task to do next
Menu to choose which task to do next
Menu to choose which task to do next
function askQuestion() {
    inquirer.prompt([
        {
            message: "What would you like to do next?",
            type: "list",
            name: "question",
            choices: ["Add an Engineer", "Add an Intern", "Finish building my team"]
        }
    ]).then(answers => {
        switch (answers.question) {
            case "Add an Engineer":
                console.log(ck.blue('Add an Engineer'));
                askID('Engineer');
                break;
            case "Add an Intern":
                console.log(ck.blue('Add an Intern'));
                askID('Intern');
                break;
            case "Finish building my team":
                console.log(ck.blue('Finish building my team'));
                generateHTML();
                break;
            default:
                break;
        }
    })
}
function askQuestion ( ) { inquirer . prompt ( [ { message : "What would you like to do next?" , type : "list" , name : "question" , choices : [ "Add an Engineer" , "Add an Intern" , "Finish building my team" ] } ] ) . then ( answers => { switch ( answers . question ) { case "Add an Engineer" : console . log ( ck . blue ( 'Add an Engineer' ) ) ; askID ( 'Engineer' ) ; break ; case "Add an Intern" : console . log ( ck . blue ( 'Add an Intern' ) ) ; askID ( 'Intern' ) ; break ; case "Finish building my team" : console . log ( ck . blue ( 'Finish building my team' ) ) ; generateHTML ( ) ; break ; default : break ; } } ) }
Menu to choose which task to do next
Menu to choose which task to do next