Send the list of commands. */
| 428 | Send the list of commands. |
| 429 | */ |
| 430 | bool GetInfoCommand::SendCommands(const CommandContext &context, int flags ) |
| 431 | { |
| 432 | context.StartArray(); |
| 433 | PluginManager & pm = PluginManager::Get(); |
| 434 | { |
| 435 | for (auto &plug |
| 436 | : pm.PluginsOfType(PluginTypeEffect | PluginTypeAudacityCommand)) { |
| 437 | auto command = pm.GetCommandIdentifier(plug.GetID()); |
| 438 | if (!command.empty()){ |
| 439 | EffectAndCommandPluginManager::Get().GetCommandDefinition( |
| 440 | plug.GetID(), context, flags); |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 | context.EndArray(); |
| 445 | return true; |
| 446 | } |
| 447 | |
| 448 | bool GetInfoCommand::SendBoxes(const CommandContext &context) |
| 449 | { |
nothing calls this directly
no test coverage detected