@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
21 lines (20 loc) • 565 B
TypeScript
import { type CommandOptions } from '@adonisjs/core/types/ace';
import { BaseCommand } from '@adonisjs/core/ace';
/**
* Command to make a new Factory
*/
export default class MakeFactory extends BaseCommand {
static commandName: string;
static description: string;
static options: CommandOptions;
/**
* Name of the model to be used in the factory
*/
model: string;
/**
* Read the contents from this file (if the flag exists) and use
* it as the raw contents
*/
contentsFrom: string;
run(): Promise<void>;
}