Class RootCommand
java.lang.Object
com.github.theword.queqiao.tool.command.SubCommand
com.github.theword.queqiao.tool.command.RootCommand
根命令抽象类
所有平台的根命令实现应继承此类
在各平台的实现中注册所有一级子命令
- Since:
- 0.5.0
-
Field Summary
Fields inherited from class com.github.theword.queqiao.tool.command.SubCommand
children, parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.theword.queqiao.tool.command.SubCommand
addChild, execute, getChildren, getFullPath, getFullPermissionNode, getParent, getPermissionNode, getUsage, isRoot, sendCommandTree
-
Constructor Details
-
RootCommand
public RootCommand()构造根命令
-
-
Method Details
-
getName
获取命令名称- Specified by:
getNamein classSubCommand- Returns:
- 命令名称(queqiao)
-
getDescription
获取命令描述- Specified by:
getDescriptionin classSubCommand- Returns:
- 命令描述
-
onExecute
执行命令- Specified by:
onExecutein classSubCommand- Parameters:
commandReturner- 命令执行者args- 命令参数
-