MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / toggleCommand

Method toggleCommand

lib/commandHandler.js:137–147  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

135 }
136 }
137 toggleCommand(name) {
138 const cmd = name.toLowerCase();
139 if (this.disabledCommands.has(cmd)) {
140 this.disabledCommands.delete(cmd);
141 return 'enabled';
142 }
143 else {
144 this.disabledCommands.add(cmd);
145 return 'disabled';
146 }
147 }
148 _levenshtein(a, b) {
149 const tmp = [];
150 for (let i = 0; i <= a.length; i++)

Callers 2

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected