| 47 | } |
| 48 | |
| 49 | void Context::executeCommand(const char* commandName) |
| 50 | { |
| 51 | Command* cmd = CommandsModule::instance()->getCommandByName(commandName); |
| 52 | if (cmd) |
| 53 | executeCommand(cmd); |
| 54 | else |
| 55 | throw std::runtime_error("Invalid command name"); |
| 56 | } |
| 57 | |
| 58 | void Context::executeCommand(Command* command, const Params& params) |
| 59 | { |
no test coverage detected