MCPcopy
hub / github.com/tj/commander.js / createCommand

Method createCommand

lib/command.js:193–195  ·  view source on GitHub ↗

* Factory routine to create a new unattached command. * * See .command() for creating an attached subcommand, which uses this routine to * create the command. You can override createCommand to customise subcommands. * * @param {string} [name] * @return {Command} new command

(name)

Source from the content-addressed store, hash-verified

191 */
192
193 createCommand(name) {
194 return new Command(name);
195 }
196
197 /**
198 * You can customise the help with a subclass of Help by overriding createHelp,

Callers 2

commandMethod · 0.95
helpCommandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected