UNPKG

mongoose-management

Version:
31 lines (30 loc) 931 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const yargs_1 = __importDefault(require("yargs")); exports.args = () => yargs_1.default .usage('$0 [-p path/to/project] [-d schemas.json]', 'Mongoose schemas management tool') .group(['p', 'd', 'c'], 'Config:') .options({ p: { type: 'string', alias: 'path', description: 'Path to the project folder', }, d: { type: 'string', alias: 'data', description: 'File name where the schema data is stored\n(file is saved in project folder)', }, c: { type: 'boolean', alias: 'not-clear', description: 'Clear not the terminal screen', }, }) .help(true) .version() .parse(); exports.default = exports.args;