UNPKG

@avleon/cli

Version:

> **🚧 This project is in active development.** > > It is **not stable** and **not ready** for live environments. > Use **only for testing, experimentation, or internal evaluation**. > > ####❗ Risks of using this in production: > > - 🔄 Breaking changes

56 lines (55 loc) 2.46 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.commandList = void 0; const chalk_1 = __importDefault(require("chalk")); exports.commandList = [ { Command: "new", Alias: "", Options: "--minimal -m, -d --database", Description: "Create a new application" }, { Command: "make:model", Alias: "m:m", Options: "-f --force, --orm", Description: "Create a new model. Use -f or --froce to overwrite if any model exists with name", }, { Command: "make:controller", Alias: "m:c", Options: `-f, --force for force create\n -r or --resource for resource controller`, Description: `Create a new controller. Use -f or --force to overwrite existing controller. If you want to create a resource controller pass options -r or --resource. You may also pass model by -m or --model.\n ${chalk_1.default.blueBright("Note:")} when using a resource contorller iqra will automaticall check for dtos related to model name. If -m is user then it will check for dtos like UserCreateDto and UserUpdateDto. If dtos not found it will create automatically using model properties. `, }, { Command: "make:service", Alias: "m:s", Options: `-f, --force for force create\n -r or --resource for resource controller, --dtos`, Description: `Create a new controller. Use -f or --force to overwrite existing controller. If you want to create a resource controller pass options -r or --resource. You may also pass model by -m or --model.\n ${chalk_1.default.blueBright("Note:")} when using a resource contorller iqra will automaticall check for dtos related to model name. If -m is user then it will check for dtos like UserCreateDto and UserUpdateDto. If dtos not found it will create automatically using model properties. `, }, { Command: "make:config", Alias: "m:cnf", Options: "-f --force", Description: "Create a new config. Use -f or --froce to overwrite if any config exists with name", }, { Command: "make:middleware", Alias: "m:mlwr", Options: "-f --force", Description: "Create a new middleware. Use -f or --froce to overwrite if any config exists with name", }, ];