()
| 334 | } |
| 335 | |
| 336 | func (cmd HelpCommand) findPlugin() (sharedaction.CommandInfo, bool) { |
| 337 | for _, pluginConfig := range cmd.Config.Plugins() { |
| 338 | for _, command := range pluginConfig.Commands { |
| 339 | if command.Name == cmd.OptionalArgs.CommandName || |
| 340 | command.Alias == cmd.OptionalArgs.CommandName { |
| 341 | return internal.ConvertPluginToCommandInfo(command), true |
| 342 | } |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | return sharedaction.CommandInfo{}, false |
| 347 | } |
| 348 | |
| 349 | func (cmd HelpCommand) getSortedPluginCommands() []configv3.PluginCommand { |
| 350 | plugins := cmd.Config.Plugins() |
no test coverage detected