| 431 | } |
| 432 | |
| 433 | command_result Commands::script(color_ostream& con, Core& core, const std::string& first, const std::vector<std::string>& parts) |
| 434 | { |
| 435 | if (parts.size() == 1) |
| 436 | { |
| 437 | core.loadScriptFile(con, std::filesystem::weakly_canonical(std::filesystem::path{parts[0]}), false); |
| 438 | return CR_OK; |
| 439 | } |
| 440 | else |
| 441 | { |
| 442 | con << "Usage:" << std::endl |
| 443 | << " script <filename>" << std::endl; |
| 444 | return CR_WRONG_USAGE; |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | command_result Commands::show(color_ostream& con, Core& core, const std::string& first, const std::vector<std::string>& parts) |
| 449 | { |
nothing calls this directly
no test coverage detected