UNPKG

@shagital/adonisjs-crud-generator

Version:

Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database

29 lines (28 loc) 844 B
import { BaseCommand } from '@adonisjs/core/build/standalone'; export default class ControllerGenerator extends BaseCommand { /** * Command name is used to run the command */ static commandName: string; /** * Command description is displayed in the "help" output */ static description: string; table: string; connection: string; static settings: { /** * Set the following value to true, if you want to load the application * before running the command */ loadApp: boolean; /** * Set the following value to true, if you want this command to keep running until * you manually decide to exit the process */ stayAlive: boolean; }; run(): Promise<void>; private generateString; private addRoutes; }