@tsclean/scaffold
Version:
This CLI creates an initial structure of a project based on clean architecture.
38 lines • 1.97 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const yargs_1 = __importDefault(require("yargs"));
const CommandInit_1 = require("./commands/CommandInit");
const CommandCreateEntity_1 = require("./commands/CommandCreateEntity");
const CommandCreateService_1 = require("./commands/CommandCreateService");
const CommandCreateController_1 = require("./commands/CommandCreateController");
const CommandCreateInterface_1 = require("./commands/CommandCreateInterface");
const CommandCreateAdapter_1 = require("./commands/CommandCreateAdapter");
const CommandCreateAdapterSimple_1 = require("./commands/CommandCreateAdapterSimple");
const CommandCreateServiceResource_1 = require("./commands/CommandCreateServiceResource");
const CommandCreateInterfaceResource_1 = require("./commands/CommandCreateInterfaceResource");
yargs_1.default.scriptName("scaffold").usage("Usage: $0 <command> [options]")
.command(new CommandInit_1.InitCommand())
.command(new CommandCreateAdapter_1.AdapterCreateCommand())
.command(new CommandCreateAdapterSimple_1.CommandCreateAdapterSimple())
.command(new CommandCreateEntity_1.EntityCreateCommand())
.command(new CommandCreateInterface_1.InterfaceCreateCommand())
.command(new CommandCreateInterfaceResource_1.CommandCreateInterfaceResource())
.command(new CommandCreateService_1.ServiceCreateCommand())
.command(new CommandCreateServiceResource_1.CommandCreateServiceResource())
.command(new CommandCreateController_1.ControllerCreateCommand())
.recommendCommands()
.demandCommand(1)
.strict()
.alias("v", "version")
.help("h")
.alias("h", "help")
.argv;
require("yargonaut")
.style("blue")
.style("yellow", "required")
.helpStyle("green")
.errorsStyle("red");
//# sourceMappingURL=index.js.map