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,oCACZ,QAAQ,IAAI,UAAW,OAAO,QAAQ,KAAK,QAAQ,MAAO,GAC9D,MACA,YAAY,QAAQ","file":"/npm/compose-to-easypanel@1.0.5/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/compose-to-easypanel@1.0.5/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsonWriter_1 = require(\"./jsonWriter\");\nconst parser_1 = require(\"./parser\");\nconst ymlReader_1 = require(\"./ymlReader\");\nconst commander_1 = require(\"commander\");\nconst path_1 = __importDefault(require(\"path\"));\ncommander_1.program\n    .name(\"compose-to-easypanel\")\n    .description(\"create an easypanel schema from a docker-compose file\")\n    .version(\"0.0.1\");\ncommander_1.program\n    .argument(\"projectName\")\n    .option(\"-i <docker-compose.yml>\", \"docker compose input file\")\n    .option(\"-o,<schema-output.json>\", \"schema json output file\")\n    .action((projectName, options) => __awaiter(void 0, void 0, void 0, function* () {\n    const input = options.i;\n    const output = options.o;\n    const file = yield (0, ymlReader_1.getYmlFile)(input);\n    const schema = (0, parser_1.parseDockerToEasypanel)(file, projectName);\n    (0, jsonWriter_1.writeJson)(output, schema);\n    console.log(\"successfully created your schema\");\n    console.log(\"visit: \", path_1.default.join(process.cwd(), output));\n}));\ncommander_1.program.parse();\n"]}