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