* 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)
| 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 | |
| 264 | const parser = new Parser(); |
no test coverage detected