MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / addCommand

Method addCommand

src/core/kernel.js:265–269  ·  view source on GitHub ↗
(keyword, definition)

Source from the content-addressed store, hash-verified

263 }
264
265 addCommand(keyword, definition) {
266 var commandGrammarType = keyword + "Command";
267 this.#grammar[commandGrammarType] = definition;
268 this.#commands[keyword] = definition;
269 }
270
271 addCommands(...commandClasses) {
272 for (const CommandClass of commandClasses) {

Callers 3

addCommandsMethod · 0.95
registerParseElementMethod · 0.95
hdbPluginFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected