MCPcopy
hub / github.com/skygragon/leetcode-cli / doTask

Function doTask

lib/plugin.js:193–202  ·  view source on GitHub ↗
(plugin, queue, cb)

Source from the content-addressed store, hash-verified

191
192Plugin.installMissings = function(cb) {
193 function doTask(plugin, queue, cb) {
194 Plugin.install(plugin.name, function(e, p) {
195 if (!e) {
196 p.enabled = plugin.enabled;
197 p.save();
198 p.help();
199 }
200 return cb(e, p);
201 });
202 }
203
204 const missings = Plugin.plugins.filter(x => x.missing);
205 if (missings.length === 0) return cb();

Callers

nothing calls this directly

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected