UNPKG

@megaorm/cli

Version:

This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).

25 lines (24 loc) 848 B
import { MegaCommand } from '../MegaCommand'; /** * Represents a command to add a seeder file to a specific folder in the project * based on MegaORM configuration. * * @extends MegaCommand */ export declare class AddSeederCommand extends MegaCommand { protected static syntax: string; /** * Resolves the appropriate path for adding a seeder file based on the configuration. * * @param config The MegaORM configuration object. * @returns The resolved path for the seeder file. * @throws `MegaCommandError` if `paths.seeders` is absolute and TypeScript is enabled. */ private static path; /** * Executes the command to add a seeder. * * @returns A promise that resolves when the seeder has been added successfully or rejects with an error. */ static exec(): Promise<void>; }