MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / addCommand

Method addCommand

src/lib/acode.js:987–991  ·  view source on GitHub ↗
(descriptor)

Source from the content-addressed store, hash-verified

985 }
986
987 addCommand(descriptor) {
988 const command = registerExternalCommand(descriptor);
989 this.#refreshCommandBindings();
990 return command;
991 }
992
993 removeCommand(name) {
994 if (!name) return;

Callers

nothing calls this directly

Calls 3

registerExternalCommandFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected