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