Class PluginCommandFactory

java.lang.Object
io.quarkus.cli.plugin.PluginCommandFactory

public class PluginCommandFactory extends Object
  • Constructor Details

    • PluginCommandFactory

      protected PluginCommandFactory()
    • PluginCommandFactory

      public PluginCommandFactory(OutputOptionMixin output)
  • Method Details

    • createCommand

      public Optional<picocli.CommandLine.Model.CommandSpec> createCommand(Plugin plugin)
      Create a command for the specified plugin
    • createCommandSpec

      public Function<PluginCommand,picocli.CommandLine.Model.CommandSpec> createCommandSpec(String description)
    • populateCommands

      public void populateCommands(picocli.CommandLine cmd, Map<String,Plugin> plugins)
      Populate the plugin commands listed in the PluginCatalog to the CommandLine.
      Parameters:
      cmd - the CommandLine.
      plugins - the available plugins.
      factory - the factory use to create the commands.