UNPKG

@mikro-orm/cli

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

19 lines (18 loc) 617 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // eslint-disable-next-line @typescript-eslint/no-var-requires require('@jercle/yargonaut') .style('blue') .style('yellow', 'required') .helpStyle('green') .errorsStyle('red'); const CLIHelper_1 = require("./CLIHelper"); const CLIConfigurator_1 = require("./CLIConfigurator"); void (async () => { const argv = CLIConfigurator_1.CLIConfigurator.configure(); const args = await argv.parse(process.argv.slice(2)); if (args._.length === 0) { CLIHelper_1.CLIHelper.showHelp(); } })();