server.js
//start by asking what they want robot
start by asking what they want robot
start by asking what they want robot
function yourChoices() {
    inquirer.prompt([
        {
            name: 'choice',
            type: 'list',
            message: 'Main Menu: what do you need done?',
            choices: ["View your Departments.", "View the Roles.", "View your Employees.", 
            "Add an Department.", "Add your Roles.", "Add a Employee.", "Update Info.", "All done!"]
        }
    ]).then(response => {
        if (response.choice === "View your Departments."){
            tableD();
        } else if(response.choice === "View the Roles."){
            tableR();
        } else if(response.choice === "View your Employees." ){
            tableE();
        } else if(response.choice === "Add an Department."){
            addD();
        } else if(response.choice === "Add your Roles."){
            addR();
        } else if(response.choice === "Add a Employee."){
            addE();
        } else if(response.choice === "Update Info."){
            updateEmpInfo();
        } else if(response.choice === "All done!"){
              console.log('Thank You For Using!');
            process.exit();
        }
    })
}
function yourChoices ( ) { inquirer . prompt ( [ { name : 'choice' , type : 'list' , message : 'Main Menu: what do you need done?' , choices : [ "View your Departments." , "View the Roles." , "View your Employees." , "Add an Department." , "Add your Roles." , "Add a Employee." , "Update Info." , "All done!" ] } ] ) . then ( response => { if ( response . choice === "View your Departments." ) { tableD ( ) ; } else if ( response . choice === "View the Roles." ) { tableR ( ) ; } else if ( response . choice === "View your Employees." ) { tableE ( ) ; } else if ( response . choice === "Add an Department." ) { addD ( ) ; } else if ( response . choice === "Add your Roles." ) { addR ( ) ; } else if ( response . choice === "Add a Employee." ) { addE ( ) ; } else if ( response . choice === "Update Info." ) { updateEmpInfo ( ) ; } else if ( response . choice === "All done!" ) { console . log ( 'Thank You For Using!' ) ; process . exit ( ) ; } } ) }
start by asking what they want robot
start by asking what they want robot