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) 919 B
import { MegaCommand } from '../MegaCommand'; /** * Represents a command to remove a seeder file from specific folders in the project * based on MegaORM configuration. * * @extends MegaCommand */ export declare class RemoveSeederCommand extends MegaCommand { protected static syntax: string; /** * Resolves the appropriate paths for removing seeder files based on the configuration. * * @param config The MegaORM configuration object. * @returns An array of resolved paths for the seeder files to be removed. * @throws `MegaCommandError` if `paths.seeders` is absolute and TypeScript is enabled. */ private static paths; /** * Removes the seeder file associated with the specified table name. * * @returns A promise that resolves when the seeder files have been successfully removed or rejects with an error. */ static exec(): Promise<void>; }