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'); } });
exports.shutdown = function() { canon.removeCommand(introCommandSpec); converters.removeConverter(introConverterSpec); };