docs: function copyPlugin(plugin_src_dir, plugins_dir, link, pluginInfoProvider) {
      var pluginInfo = new PluginInfo(plugin_src_dir);
      var dest = path.join(plugins_dir, pluginInfo.id);
      shell.rm('-rf', dest);
      if (link) {
          events.emit('verbose', 'Symlinking from location "' + plugin_src_dir + '" to location "' + dest + '"');
          shell.mkdir('-p', path.dirname(dest));
          fs.symlinkSync(plugin_src_dir, dest, 'dir');
      } else {
          shell.mkdir('-p', dest);
          events.emit('verbose', 'Copying from location "' + plugin_src_dir + '" to location "' + dest + '"');
          shell.cp('-R', path.join(plugin_src_dir, '*') , dest);
      }
      pluginInfo.dir = dest;
      pluginInfoProvider.put(pluginInfo);
  
      return dest;
  }