UNPKG

qcobjects-cli

Version:

qcobjects cli command line tool

93 lines (89 loc) 3.87 kB
#!/usr/bin/env node "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var qcobjects_cli_exports = {}; __export(qcobjects_cli_exports, { Main: () => Main, default: () => qcobjects_cli_default, defaultSettings: () => defaultSettings }); module.exports = __toCommonJS(qcobjects_cli_exports); var import_qcobjects = require("qcobjects"); var defaultSettings = __toESM(require("./defaultsettings.cjs")); var import_cli_main = require("./cli-main.cjs"); import_qcobjects.logger.debugEnabled = false; const welcometo = "Welcome to \n"; const instructions = ` Community Edition ================= This edition has the most of features that you can use for free but if you want to Upgrade to \u{1F3E2} Enterprise Edition, type the command: > qcobjects upgrade-to-enterprise `; const logo = ` .d88888b. .d8888b. .d88888b. 888 d8b 888 \r d88P" "Y88bd88P Y88bd88P" "Y88b888 Y8P 888 \r 888 888888 888888 888888 888 \r 888 888888 888 88888888b. 8888 .d88b. .d8888b888888.d8888b \r 888 888888 888 888888 "88b "888d8P Y8bd88P" 888 88K \r 888 Y8b 888888 888888 888888 888 88888888888888 888 "Y8888b. \r Y88b.Y8b88PY88b d88PY88b. .d88P888 d88P 888Y8b. Y88b. Y88b. X88 \r "Y888888" "Y8888P" "Y88888P" 88888P" 888 "Y8888 "Y8888P "Y888 88888P' \r Y8b 888 \r d88P \r 888P" `; if (process.argv.length < 3 || process.argv[2] === "create") { console.log(welcometo); console.log(logo); console.log(instructions); } import_qcobjects.logger.debugEnabled = false; import_qcobjects.logger.warnEnabled = false; import_qcobjects.logger.infoEnabled = false; class Main extends import_qcobjects.InheritClass { static { __name(this, "Main"); } constructor() { super(); const main = this; const switchCommander = new import_cli_main.SwitchCommander(); switchCommander.initCommand(); import_qcobjects.logger.debug("initialized"); } } const __main__ = new Main(); var qcobjects_cli_default = __main__; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Main, defaultSettings }); //# sourceMappingURL=qcobjects-cli.cjs.map