@x.render/render-command
v1.2.0
Published
Abstract base class for scaffolding commands
Downloads
6
Readme
render-command
Introduce
An abstract base class for scaffold commands.
A specification for node scaffolding command development, init and exec methods must be implemented
Usage
npm i @x.render/render-command -S
import { RenderCommand, CommandType } from "@x.render/render-command";
class InitCommand extends RenderCommand {
constructor(strs: string, options: Record<string, any>, cmd: CommandType) {
super(strs, options, cmd);
console.log(this.strs, this.options, this.cmd);
}
init() {}
exec() {}
}