UNPKG

qcobjects-cli

Version:

qcobjects cli command line tool

8 lines (7 loc) 3.95 kB
{ "version": 3, "sources": ["../../src/qcobjects-cli.ts"], "sourcesContent": ["#!/usr/bin/env node\n/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nimport {logger, InheritClass } from \"qcobjects\";\n\nlogger.debugEnabled = false;\nconst welcometo = \"Welcome to \\n\";\nconst instructions = `\nCommunity Edition\n=================\n\nThis edition has the most of features that you can use for free but if you want to\n\nUpgrade to \\u{1F3E2} Enterprise Edition,\ntype the command:\n\n> qcobjects upgrade-to-enterprise\n`;\nconst logo = \" .d88888b. .d8888b. .d88888b. 888 d8b 888 \\r\\nd88P\\\" \\\"Y88bd88P Y88bd88P\\\" \\\"Y88b888 Y8P 888 \\r\\n888 888888 888888 888888 888 \\r\\n888 888888 888 88888888b. 8888 .d88b. .d8888b888888.d8888b \\r\\n888 888888 888 888888 \\\"88b \\\"888d8P Y8bd88P\\\" 888 88K \\r\\n888 Y8b 888888 888888 888888 888 88888888888888 888 \\\"Y8888b. \\r\\nY88b.Y8b88PY88b d88PY88b. .d88P888 d88P 888Y8b. Y88b. Y88b. X88 \\r\\n \\\"Y888888\\\" \\\"Y8888P\\\" \\\"Y88888P\\\" 88888P\\\" 888 \\\"Y8888 \\\"Y8888P \\\"Y888 88888P' \\r\\n Y8b 888 \\r\\n d88P \\r\\n 888P\\\" \";\nif (process.argv.length<3 || process.argv[2] === \"create\"){\n console.log(welcometo);\n console.log(logo);\n console.log(instructions);\n}\nlogger.debugEnabled = false;\nlogger.warnEnabled = false;\nlogger.infoEnabled = false;\n\nexport * as defaultSettings from \"./defaultsettings\";\nimport {SwitchCommander} from \"./cli-main\";\n\nexport class Main extends InheritClass {\n constructor (){\n super();\n const main = this;\n\n const switchCommander = new SwitchCommander();\n switchCommander.initCommand();\n\n logger.debug(\"initialized\");\n\n\n }\n\n}\n\nconst __main__ = new Main ();\nexport default __main__;"], "mappings": ";;;AAiCA,SAAQ,QAAQ,oBAAoB;AAEpC,OAAO,eAAe;AACtB,MAAM,YAAY;AAClB,MAAM,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWrB,MAAM,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACb,IAAI,QAAQ,KAAK,SAAO,KAAK,QAAQ,KAAK,CAAC,MAAM,UAAS;AACxD,UAAQ,IAAI,SAAS;AACrB,UAAQ,IAAI,IAAI;AAChB,UAAQ,IAAI,YAAY;AAC1B;AACA,OAAO,eAAe;AACtB,OAAO,cAAc;AACrB,OAAO,cAAc;AAErB,YAAY,qBAAqB;AACjC,SAAQ,uBAAsB;AAEvB,MAAM,aAAa,aAAa;AAAA,EA7DvC,OA6DuC;AAAA;AAAA;AAAA,EACrC,cAAc;AACZ,UAAM;AACN,UAAM,OAAO;AAEb,UAAM,kBAAkB,IAAI,gBAAgB;AAC5C,oBAAgB,YAAY;AAE5B,WAAO,MAAM,aAAa;AAAA,EAG5B;AAEF;AAEA,MAAM,WAAW,IAAI,KAAM;AAC3B,IAAO,wBAAQ;", "names": [] }