function renderManagerQuestions() {
    inquirer.prompt(questions.managerQuestions)
    .then(managerAns => {
        const {name, id, email, officeNumber} = managerAns
        const manager = new Manager(name, id, email, officeNumber)
        const managerHTMLcontent = generateHTML.generateManagerContent(manager)
        writeManagerContent(managerHTMLcontent)
        if (managerAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (managerAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (managerAns.option === "Finish Building Team") {
            endHTMLcontent()
        } 
        
    })


    // .then( () => {
    //     if (managerAns.option === "Finish Building Team"){
    //         endHTMLcontent()
    //     }
    // })

}
// Prompt manager questions and generate HTML for manager
Prompt manager questions and generate HTML for manager
Prompt manager questions and generate HTML for manager
function renderManagerQuestions() {
    inquirer.prompt(questions.managerQuestions)
    .then(managerAns => {
        const {name, id, email, officeNumber} = managerAns
        const manager = new Manager(name, id, email, officeNumber)
        const managerHTMLcontent = generateHTML.generateManagerContent(manager)
        writeManagerContent(managerHTMLcontent)
        if (managerAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (managerAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (managerAns.option === "Finish Building Team") {
            endHTMLcontent()
        } 
    })
}
function renderManagerQuestions ( ) { inquirer . prompt ( questions . managerQuestions ) . then ( managerAns => { const { name , id , email , officeNumber } = managerAns const manager = new Manager ( name , id , email , officeNumber ) const managerHTMLcontent = generateHTML . generateManagerContent ( manager ) writeManagerContent ( managerHTMLcontent ) if ( managerAns . option === "Add an Engineer" ) { renderEngineerQuestions ( ) } if ( managerAns . option === "Add an Intern" ) { renderInternQuestions ( ) } if ( managerAns . option === "Finish Building Team" ) { endHTMLcontent ( ) } } ) }
Prompt manager questions and generate HTML for manager
Prompt manager questions and generate HTML for manager
// .then( () => { //     if (managerAns.option === "Finish Building Team"){ //         endHTMLcontent() //     } // })