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

Method toggleCommand

lib/commandHandler.ts:162–171  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

160 }
161
162 toggleCommand(name: string) {
163 const cmd = name.toLowerCase();
164 if (this.disabledCommands.has(cmd)) {
165 this.disabledCommands.delete(cmd);
166 return 'enabled';
167 } else {
168 this.disabledCommands.add(cmd);
169 return 'disabled';
170 }
171 }
172
173 _levenshtein(a: string, b: string) {
174 const tmp: number[][] = [];

Callers 2

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected