| 715 | } |
| 716 | |
| 717 | command_result CoreService::RunCommand(color_ostream &stream, |
| 718 | const dfproto::CoreRunCommandRequest *in) |
| 719 | { |
| 720 | std::string cmd = in->command(); |
| 721 | std::vector<std::string> args; |
| 722 | for (int i = 0; i < in->arguments_size(); i++) |
| 723 | args.push_back(in->arguments(i)); |
| 724 | |
| 725 | // disable try_autocomplete in runCommand so misspellings of kill-lua won't cause deadlocks |
| 726 | // this remote server connection could be the last chance for recovering from stuck Lua scripts |
| 727 | return Core::getInstance().runCommand(stream, cmd, args, true); |
| 728 | } |
| 729 | |
| 730 | command_result CoreService::CoreSuspend(color_ostream &stream, const EmptyMessage*, IntMessage *cnt) |
| 731 | { |
nothing calls this directly
no test coverage detected