function startUp() {
  inquirer.prompt([
    {
      type: "list",
      name: "initial",
      message: "What would you like to do?",
      choices: ["View All Departments", "View All Roles", "View All Employees", "Add Department", "Add Role", "Add Employee", "Update Employee Role", "End",
      ],
    }
  ]).then((answer) => {
    switch (answer.initial) {
      case "View All Departments":
        viewDepts();
        break;

      case "View All Roles":
        viewRoles();
        break;

      case "View All Employees":
        viewEmps();
        break;

      case "Add Department":
        addDept();
        break;

      case "Add Role":
        addRole();
        break;

      case "Add Employee":
        addEmp();
        break;

      case "Update Employee Role":
        updateEmp();
        break;

      case "End":
        connection.end();
        break;
    }
  });
}
//Default function that shows main menu.
Default function that shows main menu.
Default function that shows main menu .
function startUp() {
  inquirer.prompt([
    {
      type: "list",
      name: "initial",
      message: "What would you like to do?",
      choices: ["View All Departments", "View All Roles", "View All Employees", "Add Department", "Add Role", "Add Employee", "Update Employee Role", "End",
      ],
    }
  ]).then((answer) => {
    switch (answer.initial) {
      case "View All Departments":
        viewDepts();
        break;
      case "View All Roles":
        viewRoles();
        break;
      case "View All Employees":
        viewEmps();
        break;
      case "Add Department":
        addDept();
        break;
      case "Add Role":
        addRole();
        break;
      case "Add Employee":
        addEmp();
        break;
      case "Update Employee Role":
        updateEmp();
        break;
      case "End":
        connection.end();
        break;
    }
  });
}
function startUp ( ) { inquirer . prompt ( [ { type : "list" , name : "initial" , message : "What would you like to do?" , choices : [ "View All Departments" , "View All Roles" , "View All Employees" , "Add Department" , "Add Role" , "Add Employee" , "Update Employee Role" , "End" , ] , } ] ) . then ( ( answer ) => { switch ( answer . initial ) { case "View All Departments" : viewDepts ( ) ; break ; case "View All Roles" : viewRoles ( ) ; break ; case "View All Employees" : viewEmps ( ) ; break ; case "Add Department" : addDept ( ) ; break ; case "Add Role" : addRole ( ) ; break ; case "Add Employee" : addEmp ( ) ; break ; case "Update Employee Role" : updateEmp ( ) ; break ; case "End" : connection . end ( ) ; break ; } } ) ; }
Default function that shows main menu.
Default function that shows main menu .