function startManager() {
  inquirer
    .prompt({
      name: "viewOptions",
      type: "list",
      message: "Would you like to view items, view low inventory (products below 20 units), update a product, or add a new product?",
      choices: ["View Inventory", "View Low Inventory", "Update A Product", "Add A Product", "Exit"]
    })
    .then(function (answer) {
      if (answer.viewOptions === "View Inventory") {
        itemsAvailable();
      } else if (answer.viewOptions === "View Low Inventory") {
        lowInventory();
      } else if (answer.viewOptions === "Update A Product") {
        productUpdate();
      } else if (answer.viewOptions === "Add A Product") {
        // TODO
        productAdd();
      } else(answer.viewOptions === "Exit")
      //connection.end();
    });
}
// Start the program by offering users four options: view items, view low inventory, update product, or add new product.
Start the program by offering users four options: view items, view low inventory, update product, or add new product.
Start the program by offering users four options : view items view low inventory update product or add new product .
function startManager() {
  inquirer
    .prompt({
      name: "viewOptions",
      type: "list",
      message: "Would you like to view items, view low inventory (products below 20 units), update a product, or add a new product?",
      choices: ["View Inventory", "View Low Inventory", "Update A Product", "Add A Product", "Exit"]
    })
    .then(function (answer) {
      if (answer.viewOptions === "View Inventory") {
        itemsAvailable();
      } else if (answer.viewOptions === "View Low Inventory") {
        lowInventory();
      } else if (answer.viewOptions === "Update A Product") {
        productUpdate();
      } else if (answer.viewOptions === "Add A Product") {
        productAdd();
      } else(answer.viewOptions === "Exit")
    });
}
function startManager ( ) { inquirer . prompt ( { name : "viewOptions" , type : "list" , message : "Would you like to view items, view low inventory (products below 20 units), update a product, or add a new product?" , choices : [ "View Inventory" , "View Low Inventory" , "Update A Product" , "Add A Product" , "Exit" ] } ) . then ( function ( answer ) { if ( answer . viewOptions === "View Inventory" ) { itemsAvailable ( ) ; } else if ( answer . viewOptions === "View Low Inventory" ) { lowInventory ( ) ; } else if ( answer . viewOptions === "Update A Product" ) { productUpdate ( ) ; } else if ( answer . viewOptions === "Add A Product" ) { productAdd ( ) ; } else ( answer . viewOptions === "Exit" ) } ) ; }
Start the program by offering users four options: view items, view low inventory, update product, or add new product.
Start the program by offering users four options : view items view low inventory update product or add new product .
// TODO //connection.end();