MCPcopy Index your code
hub / github.com/UI5/webcomponents / execute

Method execute

packages/tools/bin/ui5nps.js:253–261  ·  view source on GitHub ↗

* Main execution method for a named command * @param {string} commandName - Name of the command to execute * @returns {Promise} Promise that resolves when execution completes

(commandName)

Source from the content-addressed store, hash-verified

251 * @returns {Promise} Promise that resolves when execution completes
252 */
253 async execute(commandName) {
254 const command = this.resolvedScripts.get(commandName);
255
256 if (!command) {
257 throw new Error(`Command "${commandName}" not found in scripts`);
258 }
259
260 return this.executeCommand(this.resolvedScripts.get(commandName), commandName);
261 }
262}
263
264const parser = new Parser();

Callers 1

ui5nps.jsFile · 0.80

Calls 2

executeCommandMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected