| 104 | } |
| 105 | |
| 106 | Array<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 | |
| 120 | CommandDefinition* Module::getCommandDefinitionFor(StringRef menu, StringRef name) |
| 121 | { |
no test coverage detected