| 355 | } |
| 356 | |
| 357 | void CommandSystem::execute(const std::string& input) |
| 358 | { |
| 359 | // Parse the string into statement(s) |
| 360 | auto statements = parseCommandString(input); |
| 361 | |
| 362 | // Now execute the statements |
| 363 | for (const auto& statement : statements) { |
| 364 | // Attempt ordinary command execution |
| 365 | executeCommand(statement.command, statement.args); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | void CommandSystem::executeCommand(const std::string& name, const ArgumentList& args) |
| 370 | { |
no test coverage detected