@catladder/cli 0.0.0-fix-minor-catenv-command-fixes-78d05852 → 0.0.0-fix-cloud-run-memory-cpu-3ff798ea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -354142,7 +354142,8 @@ var createAppBuildJob = function (context, _a) {
354142
354142
  needs: [],
354143
354143
  cache: [],
354144
354144
  variables: __assign(__assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), context.environment.jobOnlyVars.build.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
354145
- script: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(context.componentConfig.dotEnv ? (0, writeDotEnv_1.writeDotEnv)(context) : []), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
354145
+ script: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(context.componentConfig.dotEnv === true // don't build when set to `local`
354146
+ ? (0, writeDotEnv_1.writeDotEnv)(context) : []), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
354146
354147
  artifacts: {
354147
354148
  paths: [(0, path_1.join)(context.componentConfig.dir, "__build_info.json")],
354148
354149
  reports: {
@@ -355847,7 +355848,7 @@ exports.readConfigSync = readConfigSync;
355847
355848
 
355848
355849
  exports.__esModule = true;
355849
355850
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
355850
- exports.PIPELINE_IMAGE_TAG = "fix-minor-catenv-command-fixes-78d05852" || 0;
355851
+ exports.PIPELINE_IMAGE_TAG = "fix-cloud-run-memory-cpu-3ff798ea" || 0;
355851
355852
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
355852
355853
 
355853
355854
  /***/ }),
@@ -357688,6 +357689,7 @@ var createArgsString_1 = __nccwpck_require__(8686);
357688
357689
  var jobName_1 = __nccwpck_require__(77311);
357689
357690
  var common_1 = __nccwpck_require__(75655);
357690
357691
  var getLabels_1 = __nccwpck_require__(30486);
357692
+ var volumes_1 = __nccwpck_require__(84497);
357691
357693
  var getJobRunScriptForJob = function (context, jobName, wait) {
357692
357694
  var commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
357693
357695
  var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
@@ -357742,6 +357744,8 @@ var getJobCreateScripts = function (context) {
357742
357744
  exports.getJobCreateScripts = getJobCreateScripts;
357743
357745
  var getJobCreateScriptsForJob = function (context, jobName, job) {
357744
357746
  var commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
357747
+ // due to some oversight from google, jobs create does not yet accept `--add-volume` 🤦
357748
+ // lucky, update on the other hand accepts it... so let's just imediatly update it
357745
357749
  // we cannot upsert a job, so we have to create it and catch the error and then update
357746
357750
  var commandArray = Array.isArray(job.command) ? job.command : job.command.split(" ");
357747
357751
  var commonDeployArgsString = (0, createArgsString_1.createArgsString)(__assign(__assign({
@@ -357751,14 +357755,16 @@ var getJobCreateScriptsForJob = function (context, jobName, job) {
357751
357755
  "cloud-run-job-name": jobName
357752
357756
  })),
357753
357757
  image: job.image || commonDeployArgs.image,
357758
+ cpu: job === null || job === void 0 ? void 0 : job.cpu,
357754
357759
  memory: job.memory || "512Mi",
357755
357760
  "task-timeout": job.timeout || "10m",
357756
357761
  parallelism: job.parallelism || 1,
357757
357762
  "env-vars-file": "____envvars.yaml",
357758
357763
  "max-retries": 0
357759
357764
  }));
357765
+ var requiresBeta = (job === null || job === void 0 ? void 0 : job.volumes) && Object.keys(job === null || job === void 0 ? void 0 : job.volumes).length > 0;
357760
357766
  var argsString = "".concat(jobName, " ").concat(commonDeployArgsString);
357761
- return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(), " jobs create ").concat(argsString)])), false), ["".concat((0, common_1.gcloudRunCmd)(), " jobs update ").concat(argsString)], false);
357767
+ return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(), " jobs create ").concat(argsString)])), false), ["".concat((0, common_1.gcloudRunCmd)(requiresBeta ? "beta" : undefined), " jobs update ").concat(argsString, " ").concat(createArgsString_1.createArgsString.apply(void 0, __spreadArray([], __read((0, volumes_1.createVolumeConfig)(job === null || job === void 0 ? void 0 : job.volumes, "job")), false)))], false);
357762
357768
  };
357763
357769
  var getCreateScheduleScripts = function (context) {
357764
357770
  var jobsWithSchedule = getCloudRunJobsWithSchedule(context);
@@ -357836,12 +357842,44 @@ var __assign = this && this.__assign || function () {
357836
357842
  };
357837
357843
  return __assign.apply(this, arguments);
357838
357844
  };
357845
+ var __read = this && this.__read || function (o, n) {
357846
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
357847
+ if (!m) return o;
357848
+ var i = m.call(o),
357849
+ r,
357850
+ ar = [],
357851
+ e;
357852
+ try {
357853
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
357854
+ } catch (error) {
357855
+ e = {
357856
+ error: error
357857
+ };
357858
+ } finally {
357859
+ try {
357860
+ if (r && !r.done && (m = i["return"])) m.call(i);
357861
+ } finally {
357862
+ if (e) throw e.error;
357863
+ }
357864
+ }
357865
+ return ar;
357866
+ };
357867
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
357868
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
357869
+ if (ar || !(i in from)) {
357870
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
357871
+ ar[i] = from[i];
357872
+ }
357873
+ }
357874
+ return to.concat(ar || Array.prototype.slice.call(from));
357875
+ };
357839
357876
  exports.__esModule = true;
357840
357877
  exports.getServiceDeleteScript = exports.getServiceDeployScript = void 0;
357841
357878
  var getLabels_1 = __nccwpck_require__(30486);
357842
357879
  var createArgsString_1 = __nccwpck_require__(8686);
357843
357880
  var getServiceName_1 = __nccwpck_require__(89391);
357844
357881
  var common_1 = __nccwpck_require__(75655);
357882
+ var volumes_1 = __nccwpck_require__(84497);
357845
357883
  var getServiceDeployScript = function (context, service, nameSuffix) {
357846
357884
  var _a, _b, _c, _d, _e;
357847
357885
  var commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
@@ -357850,7 +357888,7 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
357850
357888
  var command = service !== true ? (_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.componentConfig.build.startCommand : undefined;
357851
357889
  var commandArray = command ? Array.isArray(command) ? command : command.split(" ") : undefined;
357852
357890
  var fullServiceName = "".concat(serviceName).concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "");
357853
- var argsString = (0, createArgsString_1.createArgsString)(__assign(__assign({
357891
+ var argsString = createArgsString_1.createArgsString.apply(void 0, __spreadArray([__assign(__assign({
357854
357892
  // command as empty string resets it to default (uses the image's entrypoint)
357855
357893
  command: commandArray ? '"' + commandArray.join(",") + '"' : '""'
357856
357894
  }, commonDeployArgs), {
@@ -357861,13 +357899,16 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
357861
357899
  "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0,
357862
357900
  "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100,
357863
357901
  "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true,
357902
+ cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu,
357864
357903
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
357865
357904
  "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true,
357866
357905
  ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all",
357867
357906
  "cpu-boost": true,
357868
357907
  "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment
357869
- }));
357870
- return "".concat((0, common_1.gcloudRunCmd)(), " deploy ").concat(fullServiceName, " ").concat(argsString);
357908
+ })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
357909
+ // volumes require beta
357910
+ var requiresBeta = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes) && Object.keys(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes).length > 0;
357911
+ return "".concat((0, common_1.gcloudRunCmd)(requiresBeta ? "beta" : undefined), " deploy ").concat(fullServiceName, " ").concat(argsString);
357871
357912
  };
357872
357913
  exports.getServiceDeployScript = getServiceDeployScript;
357873
357914
  var getServiceDeleteScript = function (context, serviceSuffix) {
@@ -358176,6 +358217,69 @@ exports.getDeployJobVariables = getDeployJobVariables;
358176
358217
 
358177
358218
  /***/ }),
358178
358219
 
358220
+ /***/ 84497:
358221
+ /***/ (function(__unused_webpack_module, exports) {
358222
+
358223
+ "use strict";
358224
+
358225
+
358226
+ var __read = this && this.__read || function (o, n) {
358227
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
358228
+ if (!m) return o;
358229
+ var i = m.call(o),
358230
+ r,
358231
+ ar = [],
358232
+ e;
358233
+ try {
358234
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
358235
+ } catch (error) {
358236
+ e = {
358237
+ error: error
358238
+ };
358239
+ } finally {
358240
+ try {
358241
+ if (r && !r.done && (m = i["return"])) m.call(i);
358242
+ } finally {
358243
+ if (e) throw e.error;
358244
+ }
358245
+ }
358246
+ return ar;
358247
+ };
358248
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
358249
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
358250
+ if (ar || !(i in from)) {
358251
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
358252
+ ar[i] = from[i];
358253
+ }
358254
+ }
358255
+ return to.concat(ar || Array.prototype.slice.call(from));
358256
+ };
358257
+ exports.__esModule = true;
358258
+ exports.createVolumeConfig = void 0;
358259
+ var createVolumeConfig = function (volumes, type) {
358260
+ if (!volumes) {
358261
+ return [];
358262
+ }
358263
+ return __spreadArray(__spreadArray([], __read(Object.entries(volumes).map(function (_a) {
358264
+ var _b = __read(_a, 2),
358265
+ volumeName = _b[0],
358266
+ _c = _b[1],
358267
+ type = _c.type,
358268
+ bucket = _c.bucket,
358269
+ mountPath = _c.mountPath,
358270
+ readonly = _c.readonly;
358271
+ return {
358272
+ "add-volume": "name=".concat(volumeName, ",type=").concat(type, ",bucket=").concat(bucket).concat(readonly ? ",readonly=true" : ""),
358273
+ "add-volume-mount": "volume=".concat(volumeName, ",mount-path=").concat(mountPath)
358274
+ };
358275
+ })), false), [type === "service" ? {
358276
+ "execution-environment": "gen2"
358277
+ } : {}], false);
358278
+ };
358279
+ exports.createVolumeConfig = createVolumeConfig;
358280
+
358281
+ /***/ }),
358282
+
358179
358283
  /***/ 81344:
358180
358284
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
358181
358285
 
@@ -364719,7 +364823,7 @@ module.exports = underscoreNodeF._;
364719
364823
  /***/ ((module) => {
364720
364824
 
364721
364825
  "use strict";
364722
- module.exports = JSON.parse('[{"description":"No API keys or secrets are stored in repository","responsibles":1,"more":""},{"description":"The app does not provide password login","responsibles":1,"more":""},{"description":"Passwords are not stored","responsibles":1,"more":""},{"description":"Passwords are stored hashed with salt and salt is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/hash.md)"},{"description":"Input that ends up in DOM is properly sanitized","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/xss.md)"},{"description":"All user inputs have reasonable validations","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/validation.md)"},{"description":"The app is not using cookies","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app is using cookies and cookies are properly configured","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app uses JWT with a secret and the secret is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"Authorization and user roles (RBAC) were reviewed thoroughly","responsibles":2,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/authorization.md)"},{"description":"CORS headers do not use `*`","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cors.md)"},{"description":"CSP headers are properly configured (no `unsafe-inline` or `unsafe-eval`)","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csp.md)"},{"description":"DoS defense mechanism is implemented","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"YAML/XML parsing is not used or used YAML/XML parsers have disabled DTD","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"The app implements CSRF prevention","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csrf.md)"},{"description":"The app has a rate limitter","responsibles":1,"more":""},{"description":"The app has disabled GraphQL introspection and schema registry","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"The app has set GraphQL complexity query limits","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"`sitemap.xml` does not leak any routes with sensitive data","responsibles":1,"more":""},{"description":"Cloud storage is (private) configured to not leak any sensitive data publicly","responsibles":1,"more":""},{"description":"Security Dashboard checks weekly vulnerable dependencies https://dep.panter.swiss/","responsibles":1,"more":""},{"description":"The app has `.well-known/security.txt` https://securitytxt.org/","responsibles":1,"more":""}]');
364826
+ module.exports = JSON.parse('[{"description":"No API keys or secrets are stored in repository","responsibles":1,"more":""},{"description":"The app does not provide password login","responsibles":1,"more":""},{"description":"Passwords are not stored","responsibles":1,"more":""},{"description":"No sensitive information (passwords, keys, user data, ...) is logged or traced","responsibles":1,"more":"[Logging guide](https://www.notion.so/panterch/Long-story-logging-022722bb878f4724ae5b49e17667b630?pvs=4#9e5a36b7158a4953b73ec6a345bd8989), [Tracing guide](https://www.notion.so/panterch/Long-story-tracing-d8a9ec1ac2ff4fa78cefa8991233224e?pvs=4#535121b5bf9741fbaf8654b4b64d879d)"},{"description":"Passwords are stored hashed with salt and salt is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/hash.md)"},{"description":"Input that ends up in DOM is properly sanitized","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/xss.md)"},{"description":"All user inputs have reasonable validations","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/validation.md)"},{"description":"The app is not using cookies","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app is using cookies and cookies are properly configured","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app uses JWT with a secret and the secret is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"Authorization and user roles (RBAC) were reviewed thoroughly","responsibles":2,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/authorization.md)"},{"description":"CORS headers do not use `*`","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cors.md)"},{"description":"CSP headers are properly configured (no `unsafe-inline` or `unsafe-eval`)","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csp.md)"},{"description":"DoS defense mechanism is implemented","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"YAML/XML parsing is not used or used YAML/XML parsers have disabled DTD","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"The app implements CSRF prevention","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csrf.md)"},{"description":"The app has a rate limitter","responsibles":1,"more":""},{"description":"The app has disabled GraphQL introspection and schema registry","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"The app has set GraphQL complexity query limits","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"`sitemap.xml` does not leak any routes with sensitive data","responsibles":1,"more":""},{"description":"Cloud storage is (private) configured to not leak any sensitive data publicly","responsibles":1,"more":""},{"description":"Security Dashboard checks weekly vulnerable dependencies https://dep.panter.swiss/","responsibles":1,"more":""},{"description":"The app has `.well-known/security.txt` https://securitytxt.org/","responsibles":1,"more":""}]');
364723
364827
 
364724
364828
  /***/ }),
364725
364829
 
@@ -364727,7 +364831,7 @@ module.exports = JSON.parse('[{"description":"No API keys or secrets are stored
364727
364831
  /***/ ((module) => {
364728
364832
 
364729
364833
  "use strict";
364730
- module.exports = JSON.parse('{"name":"@catladder/cli","description":"Panter cli tool for Kubernetes","author":"Marco Wettstein <maw@panter.ch>","homepage":"https://git.panter.ch/catladder/catladder/#readme","bugs":"https://git.panter.ch/catladder/catladder/issues","repository":{"type":"git","url":"git+https://git.panter.ch/catladder/catladder.git","directory":"cli"},"keywords":["GitLab","cloud","cli","gitlab-ci","ci/cd","pipeline","deployment","devops","automation","typescript"],"contributors":[{"name":"Marco Wettstein","email":"maw@panter.ch"},{"name":"Michael Leu","email":"leu@panter.ch"},{"name":"Luboš Matejčík","email":"lma@panter.ch"},{"name":"Kaspar Vollenweider","email":"vok@panter.ch"},{"name":"Silvan Adrian","email":"sia@panter.ch"},{"name":"Stefan Bakocs","email":"stb@panter.ch"},{"name":"Lukas Brezina","email":"brl@panter.ch"}],"license":"MIT","version":"0.0.0","scripts":{"lint":"eslint \\"src/**/*.ts\\"","lint:fix":"eslint \\"src/**/*.ts\\" --fix","test":"yarn run lint","build":"yarn build:compile && yarn build:bundle","build:bundle":"./scripts/bundle","build:compile":"yarn tsc","build:watch":"yarn tsc -w"},"bin":{"catci":"./bin/catci","catenv":"./bin/catenv","catladder":"./bin/catladder"},"engines":{"node":">=12.0.0"},"dependencies":{"ts-node":"^10.9.1"},"devDependencies":{"@catladder/pipeline":"0.0.0","@gitbeaker/rest":"^39.28.0","@kubernetes/client-node":"^0.16.2","@tsconfig/node14":"^1.0.1","@types/common-tags":"^1.8.0","@types/fs-extra":"^5.0.4","@types/js-yaml":"^4.0.5","@types/lodash":"^4.14.185","@types/memoizee":"^0.4.2","@types/node-fetch":"^2.1.4","@types/request":"^2.48.1","@types/tmp":"^0.2.3","@types/update-notifier":"^2.5.0","@types/vorpal":"^1.12.0","@types/websocket":"^0.0.40","@types/yargs":"^13.0.0","child-process-promise":"^2.2.1","clipboardy":"^2.0.0","command-exists-promise":"^2.0.2","common-tags":"^1.8.0","connection-string-parser":"^1.0.4","dayjs":"^1.10.4","eslint":"^8.7.0","fs-extra":"^7.0.1","gitlab":"^4.4.1","js-yaml":"^4.1.0","lodash":"^4.17.21","memoizee":"^0.4.14","node-fetch":"^2.3.0","open":"^8.4.0","prettier":"^2.5.1","prettier-plugin-sh":"^0.14.0","tmp-promise":"^2.0.2","ts-results-es":"^4.1.0-alpha.1","typescript":"^4.5.4","vorpal":"^1.12.0"}}');
364834
+ module.exports = JSON.parse('{"name":"@catladder/cli","description":"Panter cli tool for Kubernetes","author":"Marco Wettstein <maw@panter.ch>","homepage":"https://git.panter.ch/catladder/catladder/#readme","bugs":"https://git.panter.ch/catladder/catladder/issues","repository":{"type":"git","url":"git+https://git.panter.ch/catladder/catladder.git","directory":"cli"},"keywords":["GitLab","cloud","cli","gitlab-ci","ci/cd","pipeline","deployment","devops","automation","typescript"],"contributors":[{"name":"Marco Wettstein","email":"maw@panter.ch"},{"name":"Michael Leu","email":"leu@panter.ch"},{"name":"Luboš Matejčík","email":"lma@panter.ch"},{"name":"Kaspar Vollenweider","email":"vok@panter.ch"},{"name":"Silvan Adrian","email":"sia@panter.ch"},{"name":"Stefan Bakocs","email":"stb@panter.ch"},{"name":"Lukas Brezina","email":"brl@panter.ch"}],"license":"MIT","version":"0.0.0","scripts":{"lint":"eslint \\"src/**/*.ts\\"","lint:fix":"eslint \\"src/**/*.ts\\" --fix","test":"yarn run lint","build":"yarn build:compile && yarn build:bundle","build:bundle":"./scripts/bundle","build:compile":"yarn tsc","build:watch":"yarn tsc -w"},"bin":{"catci":"./bin/catci","catenv":"./bin/catenv","catladder":"./bin/catladder"},"engines":{"node":">=12.0.0"},"dependencies":{"ts-node":"^10.9.1"},"devDependencies":{"@catladder/pipeline":"0.0.0","@gitbeaker/rest":"^39.28.0","@kubernetes/client-node":"^0.16.2","@tsconfig/node14":"^1.0.1","@types/common-tags":"^1.8.0","@types/fs-extra":"^5.0.4","@types/js-yaml":"^4.0.5","@types/lodash":"^4.14.185","@types/memoizee":"^0.4.2","@types/node-fetch":"^2.1.4","@types/request":"^2.48.1","@types/tmp":"^0.2.3","@types/update-notifier":"^2.5.0","@types/vorpal":"^1.12.0","@types/websocket":"^0.0.40","@types/yargs":"^13.0.0","child-process-promise":"^2.2.1","clipboardy":"^2.0.0","command-exists-promise":"^2.0.2","common-tags":"^1.8.0","connection-string-parser":"^1.0.4","dayjs":"^1.10.4","eslint":"^8.7.0","fs-extra":"^7.0.1","gitlab":"^4.4.1","js-yaml":"^4.1.0","lodash":"^4.17.21","memoizee":"^0.4.14","node-fetch":"^2.3.0","open":"^8.4.0","prettier":"^2.5.1","tmp-promise":"^2.0.2","ts-results-es":"^4.1.0-alpha.1","typescript":"^4.5.4","vorpal":"^1.12.0"}}');
364731
364835
 
364732
364836
  /***/ }),
364733
364837
 
package/dist/catenv.js CHANGED
@@ -4,7 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  exports.__esModule = true;
6
6
  var catenv_1 = __importDefault(require("./apps/catenv/catenv"));
7
- (0, catenv_1["default"])().then(function () {
7
+ var parseChoice_1 = require("./config/parseChoice");
8
+ var choice = process.argv[2] ? (0, parseChoice_1.parseChoice)(process.argv[2]) : null;
9
+ (0, catenv_1["default"])(choice).then(function () {
8
10
  // we have to exit manually, because we have some file watches
9
11
  process.exit();
10
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"catenv.js","sourceRoot":"","sources":["../src/catenv.ts"],"names":[],"mappings":";;;;;AAAA,gEAA0C;AAE1C,IAAA,mBAAM,GAAE,CAAC,IAAI,CAAC;IACZ,8DAA8D;IAC9D,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"catenv.js","sourceRoot":"","sources":["../src/catenv.ts"],"names":[],"mappings":";;;;;AAAA,gEAA0C;AAE1C,oDAAmD;AAEnD,IAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAErE,IAAA,mBAAM,EAAC,MAAM,CAAC,CAAC,IAAI,CAAC;IAClB,8DAA8D;IAC9D,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC"}