render中封装的命令类,用于实现render-base-cli中方各种命令的逻辑编写
import { Command, Json, CommandType } from 'render-command';
class InitCommand extends Command {
constructor(other: Json, options: Json, cmd: CommandType) {
super(other, options, cmd);
}
async init (){
// 必须实现
}
async exec (){
// 必须实现
}
}