示例#1
0
文件: api.js 项目: aioupload/gcli
 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');
   }
 });
示例#2
0
exports.shutdown = function() {
  canon.removeCommand(introCommandSpec);
  converters.removeConverter(introConverterSpec);
};