@megaorm/cli
Version:
This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).
25 lines (24 loc) • 909 B
TypeScript
import { MegaCommand } from '../MegaCommand';
/**
* Represents a command to remove a command file from specific folders in the project
* based on MegaORM configuration.
*
* @extends MegaCommand
*/
export declare class RemoveCommandCommand extends MegaCommand {
protected static syntax: string;
/**
* Resolves the appropriate paths for removing command files based on the configuration.
*
* @param config The MegaORM configuration object.
* @returns An array of resolved paths for the command files to be removed.
* @throws `MegaCommandError` if `paths.commands` is absolute and TypeScript is enabled.
*/
private static paths;
/**
* Removes the command file with the specified name.
*
* @returns A promise that resolves when the command files have been successfully removed or rejects with an error.
*/
static exec(): Promise<void>;
}