MCPcopy Create free account
hub / github.com/DFHack/dfhack / RunCommand

Method RunCommand

library/RemoteTools.cpp:717–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717command_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
730command_result CoreService::CoreSuspend(color_ostream &stream, const EmptyMessage*, IntMessage *cnt)
731{

Callers

nothing calls this directly

Calls 1

runCommandMethod · 0.80

Tested by

no test coverage detected