quilon
Version:
Generate ERDs from your entity files automagically
34 lines (33 loc) • 1.12 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Quilon = void 0;
const commander_1 = require("commander");
const Init_1 = require("../commands/init/Init");
const Generate_1 = require("../commands/generate/Generate");
class Quilon {
constructor() {
this.program = new commander_1.Command();
}
setup() {
this.configure();
this.setupCommands();
this.program.parse(process.argv);
}
configure() {
this.program.name("Quilon").description("Create ERDs out of your ORM Entities with ease.").version("1.0.0");
}
setupCommands() {
this.init();
this.generate();
}
init() {
const command = new Init_1.InitCommand();
this.program.command("init").description("Create a config file with default settings.").action(command.execute);
}
generate() {
const command = new Generate_1.GenerateCommand();
this.program.command("generate").description("Generate your ERD with the specified settings.").action(command.execute);
}
}
exports.Quilon = Quilon;
;