Package io.quarkus.cli.plugin
Class PluginCommandFactory
java.lang.Object
io.quarkus.cli.plugin.PluginCommandFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionOptional<picocli.CommandLine.Model.CommandSpec> createCommand(Plugin plugin) Create a command for the specified pluginFunction<PluginCommand, picocli.CommandLine.Model.CommandSpec> createCommandSpec(String description) voidpopulateCommands(picocli.CommandLine cmd, Map<String, Plugin> plugins) Populate the plugin commands listed in thePluginCatalogto theCommandLine.
-
Constructor Details
-
PluginCommandFactory
protected PluginCommandFactory() -
PluginCommandFactory
-
-
Method Details
-
createCommand
Create a command for the specified plugin -
createCommandSpec
public Function<PluginCommand,picocli.CommandLine.Model.CommandSpec> createCommandSpec(String description) -
populateCommands
Populate the plugin commands listed in thePluginCatalogto theCommandLine.- Parameters:
cmd- the CommandLine.plugins- the available plugins.factory- the factory use to create the commands.
-