AbstractCommand

abstract class AbstractCommand(name: String, version: String, description: String) : Command

Command 实现.

Author

M8Test, [email protected], https://m8test.com

Constructors

Link copied to clipboard
constructor(name: String, version: String, description: String)

Functions

Link copied to clipboard
abstract fun execute(argument: String, environment: Map<String, Any>): Result

执行命令.

Link copied to clipboard
open override fun getDescription(): String

获取命令描述, 说明命令的作用以及参数等等.

Link copied to clipboard
open override fun getName(): String

获取命令名称.

Link copied to clipboard
open override fun getVersion(): String

获取命令版本