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

Method InvokeCommand

library/PluginManager.cpp:1035–1039  ·  view source on GitHub ↗

FIXME: handle name collisions...

Source from the content-addressed store, hash-verified

1033
1034// FIXME: handle name collisions...
1035command_result PluginManager::InvokeCommand(color_ostream &out, const std::string & command, std::vector <std::string> & parameters)
1036{
1037 Plugin *plugin = getPluginByCommand(command);
1038 return plugin ? plugin->invoke(out, command, parameters) : CR_NOT_IMPLEMENTED;
1039}
1040
1041bool PluginManager::CanInvokeHotkey(const std::string &command, df::viewscreen *top)
1042{

Callers 1

runCommandMethod · 0.80

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected