@Component
public class ModuleCommands
extends java.lang.Object
implements org.springframework.shell.core.CommandMarker
Modifier and Type | Class and Description |
---|---|
static class |
ModuleCommands.QualifiedModuleName |
Constructor and Description |
---|
ModuleCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
available() |
java.lang.String |
createModule(java.lang.String name,
java.lang.String dsl) |
java.lang.String |
destroyModule(ModuleCommands.QualifiedModuleName module) |
Table |
listModules() |
java.lang.String |
moduleInfo(ModuleCommands.QualifiedModuleName module,
boolean showHidden) |
@CliAvailabilityIndicator(value={"module compose","module list","module info","module delete"}) public boolean available()
@CliCommand(value="module info", help="Get information about a module") public java.lang.String moduleInfo(@CliOption(mandatory=true,key={"name",""},help="name of the module to query, in the form \'type:name\'") ModuleCommands.QualifiedModuleName module, @CliOption(key="hidden",help="whether to show \'hidden\' options",specifiedDefaultValue="true",unspecifiedDefaultValue="false") boolean showHidden)
@CliCommand(value="module compose", help="Create a virtual module") public java.lang.String createModule(@CliOption(mandatory=true,key={"name",""},help="the name to give to the module") java.lang.String name, @CliOption(mandatory=true,key="definition",optionContext="completion-module disable-string-converter",help="module definition using xd dsl") java.lang.String dsl)
@CliCommand(value="module delete", help="Delete a virtual module") public java.lang.String destroyModule(@CliOption(mandatory=true,key={"name",""},help="name of the module to delete, in the form \'type:name\'") ModuleCommands.QualifiedModuleName module)
@CliCommand(value="module list", help="List all modules") public Table listModules()