Exemplo n.º 1
0
 items.forEach(function(item) {
   if (item.item === 'command') {
     canon.removeCommand(item);
   }
   else if (item.item === 'type') {
     types.removeType(item);
   }
   else if (item.item === 'converter') {
     converters.removeConverter(item);
   }
   else if (item.item === 'settings') {
     settings.removeSetting(item);
   }
   else if (item.item === 'field') {
     fields.removeField(item);
   }
   else {
     throw new Error('item property not found');
   }
 });
Exemplo n.º 2
0
exports.shutdown = function() {
  canon.removeCommand(introCommandSpec);
  converters.removeConverter(introConverterSpec);
};