MCPcopy Create free account
hub / github.com/benkuper/Chataigne / getCommands

Method getCommands

Source/Module/Module.cpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106Array<CommandDefinition*> Module::getCommands(bool includeTemplateCommands)
107{
108 Array<CommandDefinition*> result;
109 for (auto& d : defManager->definitions) result.add(d);
110 if (includeTemplateCommands)
111 {
112 for (auto& td : templateManager->defManager->definitions) result.add(td);
113 }
114
115 result.add(scriptCommanDef.get());
116
117 return result;
118}
119
120CommandDefinition* Module::getCommandDefinitionFor(StringRef menu, StringRef name)
121{

Callers 1

CommandTemplateMethod · 0.80

Calls 2

addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected