* @brief Register a new command handler */
| 104 | * @brief Register a new command handler |
| 105 | */ |
| 106 | void API::CommandRegistry::registerCommand(const QString& name, |
| 107 | const QString& description, |
| 108 | CommandFunction handler) |
| 109 | { |
| 110 | CommandDefinition def; |
| 111 | def.name = name; |
| 112 | def.description = description; |
| 113 | def.handler = std::move(handler); |
| 114 | m_commands.insert(name, def); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * @brief Register a new command handler with a JSON Schema for MCP tool metadata |
no outgoing calls
no test coverage detected