@megaorm/cli
Version:
This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).
23 lines (21 loc) • 545 B
Plain Text
import { MegaCommand } from '@megaorm/cli';
/**
* This is a base command template for creating a custom command.
*
* @extends `MegaCommand`
*/
export class [className] extends MegaCommand {
/**
* Define the command syntax, as the following:
* - `<! name>`: required argument
* - `<? name>`: optional argument
* - `<- name>`: option
*/
protected static syntax = '';
/**
* This method is called when the command is executed.
*/
public static exec(): any {
// Your command logic here...
}
}