function query() {
    inquirer.prompt([ // Additional Employee data input section
        {   
            type: 'list',
            message: `What do you want to do next?`,
            name: 'query',
            choices: [
                'Add an Engineer to your team roster',
                'Add an Intern to your team roster',
                'Exit program and generate team profile'
            ]
        }
    ]).then((input) => { // Switch handles function calling
        switch(input.query) {
            case 'Add an Engineer to your team roster': {
                engineer();
            } break;
            case 'Add an Intern to your team roster': {
                intern();
            } break;
            case 'Exit program and generate team profile': {
                writeFile(staff);
            } break;
        };
    });
}
// Inquirer function for handling additional Employee data
Inquirer function for handling additional Employee data
Inquirer function for handling additional Employee data
function query() {
    inquirer.prompt([ 
        {   
            type: 'list',
            message: `What do you want to do next?`,
            name: 'query',
            choices: [
                'Add an Engineer to your team roster',
                'Add an Intern to your team roster',
                'Exit program and generate team profile'
            ]
        }
    ]).then((input) => { 
        switch(input.query) {
            case 'Add an Engineer to your team roster': {
                engineer();
            } break;
            case 'Add an Intern to your team roster': {
                intern();
            } break;
            case 'Exit program and generate team profile': {
                writeFile(staff);
            } break;
        };
    });
}
function query ( ) { inquirer . prompt ( [ { type : 'list' , message : ` ` , name : 'query' , choices : [ 'Add an Engineer to your team roster' , 'Add an Intern to your team roster' , 'Exit program and generate team profile' ] } ] ) . then ( ( input ) => { switch ( input . query ) { case 'Add an Engineer to your team roster' : { engineer ( ) ; } break ; case 'Add an Intern to your team roster' : { intern ( ) ; } break ; case 'Exit program and generate team profile' : { writeFile ( staff ) ; } break ; } ; } ) ; }
Inquirer function for handling additional Employee data
Inquirer function for handling additional Employee data
// Additional Employee data input section // Switch handles function calling