MCPcopy Create free account
hub / github.com/acode/cli / completeCallback

Method completeCallback

cli/commands/__nomethod__.js:409–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 debugLog();
408
409 let completeCallback = function () {
410 if (gateway) {
411 params.name = params.name.replace(/(\[\@local\])/gi, '[@local:' + gateway.port + ']');
412 }
413 try {
414 let cfg = {token: token, host: host, port: port, webhook: webhook, bg: bg, convert: true};
415 lib(cfg)[params.name](kwargs, cb);
416 } catch(e) {
417 console.error(e);
418 return callback(e);
419 }
420 };
421
422 if (isLocal) {
423 gateway.listen(null, completeCallback, {retry: true});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected