function add()

in cli.js [70:90]


function add () {
  inquirer.prompt({
    message: 'What do you need to do?',
    name: 'title'
  }, function (answers) {
    if (answers.title !== '') {
      todos.insert({
        title: answers.title
      }, function (err) {
        if (err) {
          throw err;
        }
        console.log('"' + answers.title + '" was successfully added.\n');
        init();
      });
    } else {
      console.log('Aborted.\n');
      init();
    }
  });
}