@Component
public class ModuleCommands
extends java.lang.Object
implements org.springframework.shell.core.CommandMarker| 修飾子と型 | クラスと説明 |
|---|---|
static class | ModuleCommands.QualifiedModuleName |
| コンストラクターと説明 |
|---|
ModuleCommands() |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | available() |
java.lang.String | composeModule(java.lang.String name, java.lang.String dsl, boolean force) |
java.lang.String | destroyModule(ModuleCommands.QualifiedModuleName module) |
Table | listModules() |
java.lang.String | moduleInfo(ModuleCommands.QualifiedModuleName module, boolean showHidden) |
java.lang.String | uploadModule(RESTModuleType type, java.lang.String name, java.io.File file, boolean force) |
@CliAvailabilityIndicator(value={"module compose","module list","module info","module delete","module upload"})
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 composeModule(@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,
@CliOption(key="force",help="force update if module already exists (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false")
boolean force)@CliCommand(value="module upload",
help="Upload a new module")
public java.lang.String uploadModule(@CliOption(mandatory=true,key="type",help="the type for the uploaded module")
RESTModuleType type,
@CliOption(mandatory=true,key="name",help="the name for the uploaded module")
java.lang.String name,
@CliOption(mandatory=true,key={"","file"},help="path to the module archive")
java.io.File file,
@CliOption(key="force",help="force update if module already exists (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false")
boolean force)
throws java.io.IOExceptionjava.io.IOException@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()