index.js
// user will be able to choose: add intern\engineer\finish the process;
user will be able to choose: add intern\engineer\finish the process.
user will be able to choose : add intern \ engineer \ finish the process .
function nextStep(){
    return inquirer.prompt([
        {
            type: 'list',
            choices: ['Add an Inter', 'Add an Engineer', 'Skip'],
            name: 'teamBuild',
        },
    ])
    .then((answers) => {
        if(answers.teamBuild === 'Add an Inter'){
            addInter();
        };
        if(answers.teamBuild === 'Add an Engineer'){
            addEngineer();
        }
        if(answers.teamBuild === 'Skip'){
            htmlBuilder.generateHtml(employeeList);
            console.log('Your Team website is successfully generated.');
        };
    })
}
function nextStep ( ) { return inquirer . prompt ( [ { type : 'list' , choices : [ 'Add an Inter' , 'Add an Engineer' , 'Skip' ] , name : 'teamBuild' , } , ] ) . then ( ( answers ) => { if ( answers . teamBuild === 'Add an Inter' ) { addInter ( ) ; } ; if ( answers . teamBuild === 'Add an Engineer' ) { addEngineer ( ) ; } if ( answers . teamBuild === 'Skip' ) { htmlBuilder . generateHtml ( employeeList ) ; console . log ( 'Your Team website is successfully generated.' ) ; } ; } ) }
user will be able to choose: add intern\engineer\finish the process;
user will be able to choose : add intern \ engineer \ finish the process ;
// id skip option is chosen => a new html file will be generated that displays all of the users input;