app.js
// initial function to start the user prompts
initial function to start the user prompts
initial function to start the user prompts
async function init() {
    const response = await inquirer.prompt(
        {
        type: 'list',
        message : 'What would you like to do?',
        name : 'initChoice',
        choices: ['Add Employee', 'Update Employee Role', 'View All Roles', 'Add Role', 'View All Departments', 'Add Department']
        })
        switch(response.initChoice){
            case 'Add Employee': addEmp(); return;
            case 'View All Roles': viewRoles(); return;
            case 'Add Role': addRole(); return;
            case 'View All Departments': viewDepts(); return;
            case 'Add Department': addDept(); return;
    };
}
async function init ( ) { const response = await inquirer . prompt ( { type : 'list' , message : 'What would you like to do?' , name : 'initChoice' , choices : [ 'Add Employee' , 'Update Employee Role' , 'View All Roles' , 'Add Role' , 'View All Departments' , 'Add Department' ] } ) switch ( response . initChoice ) { case 'Add Employee' : addEmp ( ) ; return ; case 'View All Roles' : viewRoles ( ) ; return ; case 'Add Role' : addRole ( ) ; return ; case 'View All Departments' : viewDepts ( ) ; return ; case 'Add Department' : addDept ( ) ; return ; } ; }
initial function to start the user prompts
initial function to start the user prompts
// case 'Update Employee Role': updateEmp(); return;