UNPKG

@megaorm/cli

Version:

This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).

25 lines (22 loc) 556 B
const { MegaCommand } = require('@megaorm/cli'); /** * This is a base command template for creating a custom command. * * @extends `MegaCommand` */ class [className] extends MegaCommand { /** * Define the command syntax, as the following: * - `<! name>`: required argument * - `<? name>`: optional argument * - `<- name>`: option */ static syntax = ''; /** * This method is called when the command is executed. */ static exec() { // Your command logic here... } } module.exports = { [className] };