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