@catladder/cli 0.0.0-refactor-cloud-run-825d7e86 → 0.0.0-refactore-catenv-command-validates-argument-78d05852

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.
Files changed (58) hide show
  1. package/bin/catci +3 -0
  2. package/bin/catci-dev +3 -0
  3. package/dist/apps/catci/catci.d.ts +1 -0
  4. package/dist/apps/catci/catci.js +86 -0
  5. package/dist/apps/catci/catci.js.map +1 -0
  6. package/dist/apps/catci/commands/security/auditDocument.d.ts +19 -0
  7. package/dist/apps/catci/commands/security/auditDocument.js +90 -0
  8. package/dist/apps/catci/commands/security/auditDocument.js.map +1 -0
  9. package/dist/apps/catci/commands/security/commands.d.ts +2 -0
  10. package/dist/apps/catci/commands/security/commands.js +185 -0
  11. package/dist/apps/catci/commands/security/commands.js.map +1 -0
  12. package/dist/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +9 -0
  13. package/dist/apps/catci/commands/security/createSecurityAuditMergeRequest.js +112 -0
  14. package/dist/apps/catci/commands/security/createSecurityAuditMergeRequest.js.map +1 -0
  15. package/dist/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -0
  16. package/dist/apps/catci/commands/security/evaluateSecurityAudit.js +76 -0
  17. package/dist/apps/catci/commands/security/evaluateSecurityAudit.js.map +1 -0
  18. package/dist/apps/catci/commands/security/topics.json +112 -0
  19. package/dist/apps/catenv/catenv.d.ts +1 -2
  20. package/dist/apps/catenv/catenv.js +4 -2
  21. package/dist/apps/catenv/catenv.js.map +1 -1
  22. package/dist/apps/cli/commands/project/commandSecurityEvaluate.d.ts +3 -0
  23. package/dist/apps/cli/commands/project/commandSecurityEvaluate.js +70 -0
  24. package/dist/apps/cli/commands/project/commandSecurityEvaluate.js.map +1 -0
  25. package/dist/apps/cli/commands/project/index.js +2 -0
  26. package/dist/apps/cli/commands/project/index.js.map +1 -1
  27. package/dist/bundles/catci/index.js +71390 -0
  28. package/dist/bundles/catenv/index.js +114 -47
  29. package/dist/bundles/cli/index.js +2195 -1063
  30. package/dist/catci.d.ts +1 -0
  31. package/dist/catci.js +5 -0
  32. package/dist/catci.js.map +1 -0
  33. package/dist/catenv.js +1 -3
  34. package/dist/catenv.js.map +1 -1
  35. package/dist/config/getProjectConfig.js +6 -9
  36. package/dist/config/getProjectConfig.js.map +1 -1
  37. package/dist/config/parseChoiceArgument.d.ts +13 -0
  38. package/dist/config/parseChoiceArgument.js +43 -0
  39. package/dist/config/parseChoiceArgument.js.map +1 -0
  40. package/dist/gcloud/serviceAccounts.js +3 -1
  41. package/dist/gcloud/serviceAccounts.js.map +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +9 -5
  44. package/scripts/bundle +2 -0
  45. package/src/apps/catci/catci.ts +26 -0
  46. package/src/apps/catci/commands/security/auditDocument.ts +150 -0
  47. package/src/apps/catci/commands/security/commands.ts +161 -0
  48. package/src/apps/catci/commands/security/createSecurityAuditMergeRequest.ts +98 -0
  49. package/src/apps/catci/commands/security/evaluateSecurityAudit.ts +30 -0
  50. package/src/apps/catci/commands/security/topics.json +120 -0
  51. package/src/apps/catenv/catenv.ts +8 -6
  52. package/src/apps/cli/commands/project/commandSecurityEvaluate.ts +26 -0
  53. package/src/apps/cli/commands/project/index.ts +2 -0
  54. package/src/catci.ts +3 -0
  55. package/src/catenv.ts +2 -6
  56. package/src/config/getProjectConfig.ts +9 -11
  57. package/src/config/parseChoiceArgument.ts +50 -0
  58. package/src/gcloud/serviceAccounts.ts +2 -1
@@ -44,11 +44,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
44
44
  };
45
45
  exports.__esModule = true;
46
46
  var getProjectConfig_1 = __nccwpck_require__(4146);
47
+ var parseChoiceArgument_1 = __nccwpck_require__(3008);
47
48
  var printVariables_1 = __nccwpck_require__(7770);
48
49
  var writeDotEnvFiles_1 = __nccwpck_require__(4295);
49
50
  var writeEnvDTs_1 = __nccwpck_require__(4615);
50
- exports["default"] = (function (choice) { return __awaiter(void 0, void 0, void 0, function () {
51
- var config;
51
+ exports["default"] = (function () { return __awaiter(void 0, void 0, void 0, function () {
52
+ var config, choice;
52
53
  return __generator(this, function (_a) {
53
54
  switch (_a.label) {
54
55
  case 0: return [4 /*yield*/, (0, getProjectConfig_1.getProjectConfig)()];
@@ -57,6 +58,7 @@ exports["default"] = (function (choice) { return __awaiter(void 0, void 0, void
57
58
  if (!config) {
58
59
  return [2 /*return*/];
59
60
  }
61
+ choice = (0, parseChoiceArgument_1.parseChoiceArgument)(config);
60
62
  return [4 /*yield*/, (0, printVariables_1.printVariables)(config, choice)];
61
63
  case 2:
62
64
  _a.sent();
@@ -543,9 +545,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
543
545
  };
544
546
  exports.__esModule = true;
545
547
  var catenv_1 = __importDefault(__nccwpck_require__(3073));
546
- var parseChoice_1 = __nccwpck_require__(3319);
547
- var choice = process.argv[2] ? (0, parseChoice_1.parseChoice)(process.argv[2]) : null;
548
- (0, catenv_1["default"])(choice).then(function () {
548
+ (0, catenv_1["default"])().then(function () {
549
549
  // we have to exit manually, because we have some file watches
550
550
  process.exit();
551
551
  });
@@ -795,15 +795,12 @@ var resolveSecrets = function (vorpal, varSets) { return __awaiter(void 0, void
795
795
  .map(function (_a) {
796
796
  var key = _a[0], value = _a[1];
797
797
  var secretKey = set.secretEnvVarKeys.find(function (k) { return k.key === key; });
798
- if (secretKey) {
799
- if (secretKey.hidden) {
800
- return null;
801
- }
802
- for (var _i = 0, allVariablesInGitlab_1 = allVariablesInGitlab; _i < allVariablesInGitlab_1.length; _i++) {
803
- var variable = allVariablesInGitlab_1[_i];
804
- value = value.replace(new RegExp("\\$" + variable.key, "g"), variable.value);
805
- }
806
- return [key, value];
798
+ if ((secretKey === null || secretKey === void 0 ? void 0 : secretKey.hidden) || value === undefined) {
799
+ return null;
800
+ }
801
+ for (var _i = 0, allVariablesInGitlab_1 = allVariablesInGitlab; _i < allVariablesInGitlab_1.length; _i++) {
802
+ var variable = allVariablesInGitlab_1[_i];
803
+ value = value.replace(new RegExp("\\$" + variable.key, "g"), variable.value);
807
804
  }
808
805
  return [key, value];
809
806
  })
@@ -889,6 +886,56 @@ exports.parseChoice = parseChoice;
889
886
 
890
887
  /***/ }),
891
888
 
889
+ /***/ 3008:
890
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
891
+
892
+ "use strict";
893
+
894
+ exports.__esModule = true;
895
+ exports.parseChoiceArgument = exports.getEnvComponentArgument = void 0;
896
+ var pipeline_1 = __nccwpck_require__(5355);
897
+ var envTypes = Object.keys(pipeline_1.ENV_TYPES);
898
+ var getEnvComponentArgument = function () {
899
+ var _a;
900
+ var componentMatch = "([a-zA-Z0-9_-]+)";
901
+ var argRegexp = new RegExp("^((".concat(envTypes.join('|'), "):").concat(componentMatch, "|").concat(componentMatch, ")$"));
902
+ var envComponent = (_a = process.argv[2]) !== null && _a !== void 0 ? _a : '';
903
+ var _b = argRegexp.exec(envComponent), _c = _b[2], env = _c === void 0 ? 'local' : _c, componentNameWithEnv = _b[3], onlyComponentName = _b[4];
904
+ if (!(0, pipeline_1.isKnowEnvType)(env)) {
905
+ throw new Error("invalid env type! ".concat(env, ".\nEnv must be one of: ").concat(envTypes.join(', ')));
906
+ }
907
+ if (componentNameWithEnv === null || componentNameWithEnv === void 0 ? void 0 : componentNameWithEnv.length) {
908
+ return { env: env, componentName: componentNameWithEnv };
909
+ }
910
+ if (onlyComponentName === null || onlyComponentName === void 0 ? void 0 : onlyComponentName.length) {
911
+ return { env: env, componentName: onlyComponentName };
912
+ }
913
+ return { env: env };
914
+ };
915
+ exports.getEnvComponentArgument = getEnvComponentArgument;
916
+ /**
917
+ * Parses the environment component argument and returns a Choice object.
918
+ * @param envComponent - The environment component argument to parse.
919
+ * @returns The parsed Choice object.
920
+ * @throws Error if the env type is invalid.
921
+ */
922
+ var parseChoiceArgument = function (_a) {
923
+ var components = _a.components;
924
+ var _b = (0, exports.getEnvComponentArgument)(), env = _b.env, componentName = _b.componentName;
925
+ var componentNames = Object.keys(components);
926
+ if ((componentName === null || componentName === void 0 ? void 0 : componentName.length) && !componentNames.includes(componentName)) {
927
+ throw new Error("invalid component name! Component must be one of: ".concat(componentNames.join(', ')));
928
+ }
929
+ if (componentName === null || componentName === void 0 ? void 0 : componentName.length) {
930
+ return { env: env, componentName: componentName };
931
+ }
932
+ return { env: env };
933
+ };
934
+ exports.parseChoiceArgument = parseChoiceArgument;
935
+ //# sourceMappingURL=parseChoiceArgument.js.map
936
+
937
+ /***/ }),
938
+
892
939
  /***/ 8116:
893
940
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
894
941
 
@@ -40535,7 +40582,7 @@ var createRailsBuildJobs = function (context) {
40535
40582
  dockerBuild: {
40536
40583
  variables: __assign(__assign({}, context.environment.jobOnlyVars.build.envVars), context.componentConfig.build.extraVars),
40537
40584
  // custom script
40538
- script: __spreadArray(__spreadArray([], __read((0, docker_1.gitlabDockerLogin)(context)), false), ["docker pull $DOCKER_CACHE_IMAGE || true", "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
40585
+ script: __spreadArray(__spreadArray([], __read((0, docker_1.gitlabDockerLogin)(context)), false), ["cd ".concat(context.componentConfig.dir), "docker pull $DOCKER_CACHE_IMAGE || true", "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
40539
40586
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
40540
40587
  "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")], false)
40541
40588
  }
@@ -40920,7 +40967,7 @@ exports.readConfigSync = readConfigSync;
40920
40967
 
40921
40968
  exports.__esModule = true;
40922
40969
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40923
- exports.PIPELINE_IMAGE_TAG = "refactor-cloud-run-825d7e86" || 0;
40970
+ exports.PIPELINE_IMAGE_TAG = "refactore-catenv-command-validates-argument-78d05852" || 0;
40924
40971
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40925
40972
 
40926
40973
  /***/ }),
@@ -41830,7 +41877,7 @@ exports.__esModule = true;
41830
41877
  exports.translateLegacyFromComponents = exports.resolveReferences = void 0;
41831
41878
  var lodash_1 = __nccwpck_require__(3255);
41832
41879
  var string_replace_async_1 = __importDefault(__nccwpck_require__(4439));
41833
- var REGEX = /\$\{(([^:]+):)?([^}]+)}/gm;
41880
+ var REGEX = /\$\{(([^:}]+):)?([^}]+)}/gm;
41834
41881
  var resolveReferences = function (vars, getOtherVariables, alreadyVisitedBase) {
41835
41882
  if (alreadyVisitedBase === void 0) {
41836
41883
  alreadyVisitedBase = {};
@@ -42764,7 +42811,7 @@ var getLabels_1 = __nccwpck_require__(486);
42764
42811
  var getJobRunScriptForJob = function (context, jobName, wait) {
42765
42812
  var commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
42766
42813
  var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
42767
- return "gcloud beta run jobs execute ".concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
42814
+ return "".concat((0, common_1.gcloudRunCmd)(), " jobs execute ").concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
42768
42815
  };
42769
42816
  var getDeleteSchedulesScripts = function (context) {
42770
42817
  var deployConfig = (0, common_1.getCloudRunDeployConfig)(context);
@@ -42775,7 +42822,7 @@ var getDeleteSchedulesScripts = function (context) {
42775
42822
  });
42776
42823
  return jobsWithSchedule.map(function (_a) {
42777
42824
  var schedulerName = _a.schedulerName;
42778
- return ["gcloud scheduler jobs delete ".concat(schedulerName, " ").concat(argsString)];
42825
+ return ["".concat((0, common_1.gcloudSchedulerCmd)(), " jobs delete ").concat(schedulerName, " ").concat(argsString)];
42779
42826
  }).flat();
42780
42827
  };
42781
42828
  exports.getDeleteSchedulesScripts = getDeleteSchedulesScripts;
@@ -42787,7 +42834,7 @@ var getDeleteJobsScripts = function (context) {
42787
42834
  var jobName = _a.jobName;
42788
42835
  return [
42789
42836
  // first delete all job executions. Otherwise delete might fail if one of those is still running
42790
- "gcloud beta run jobs executions list ".concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} gcloud beta run jobs executions delete {} --quiet ").concat(commonArgsString), "gcloud beta run jobs delete ".concat(jobName, " ").concat(commonArgsString)];
42837
+ "".concat((0, common_1.gcloudRunCmd)(), " jobs executions list ").concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} ").concat((0, common_1.gcloudRunCmd)(), " jobs executions delete {} --quiet ").concat(commonArgsString), "".concat((0, common_1.gcloudRunCmd)(), " jobs delete ").concat(jobName, " ").concat(commonArgsString)];
42791
42838
  });
42792
42839
  };
42793
42840
  exports.getDeleteJobsScripts = getDeleteJobsScripts;
@@ -42815,9 +42862,7 @@ var getJobCreateScripts = function (context) {
42815
42862
  exports.getJobCreateScripts = getJobCreateScripts;
42816
42863
  var getJobCreateScriptsForJob = function (context, jobName, job) {
42817
42864
  var commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
42818
- // due to some oversight from google, jobs create does not accept `--env-vars-file` 🤦
42819
- // lucky, update on the other hand accepts it... so let's just imediatly update it
42820
- // also we cannot upsert a job, so we have to create it and catch the error and then update
42865
+ // we cannot upsert a job, so we have to create it and catch the error and then update
42821
42866
  var commandArray = Array.isArray(job.command) ? job.command : job.command.split(" ");
42822
42867
  var commonDeployArgsString = (0, createArgsString_1.createArgsString)(__assign(__assign({
42823
42868
  command: '"' + commandArray.join(",") + '"'
@@ -42827,10 +42872,13 @@ var getJobCreateScriptsForJob = function (context, jobName, job) {
42827
42872
  })),
42828
42873
  image: job.image || commonDeployArgs.image,
42829
42874
  memory: job.memory || "512Mi",
42830
- "task-timeout": job.timeout || "10m"
42875
+ "task-timeout": job.timeout || "10m",
42876
+ parallelism: job.parallelism || 1,
42877
+ "env-vars-file": "____envvars.yaml",
42878
+ "max-retries": 0
42831
42879
  }));
42832
42880
  var argsString = "".concat(jobName, " ").concat(commonDeployArgsString);
42833
- return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["gcloud beta run jobs create ".concat(argsString)])), false), ["gcloud beta run jobs update ".concat(argsString, " --env-vars-file=____envvars.yaml")], false);
42881
+ 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);
42834
42882
  };
42835
42883
  var getCreateScheduleScripts = function (context) {
42836
42884
  var jobsWithSchedule = getCloudRunJobsWithSchedule(context);
@@ -42850,7 +42898,7 @@ var getCreateScheduleScripts = function (context) {
42850
42898
  "oauth-service-account-email": "$GCLOUD_PROJECT_NUMBER-compute@developer.gserviceaccount.com"
42851
42899
  });
42852
42900
  var commonArgs = "http ".concat(schedulerName, " ").concat(argsString);
42853
- return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["gcloud scheduler jobs create ".concat(commonArgs)])), false), ["gcloud scheduler jobs update ".concat(commonArgs)], false);
42901
+ return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudSchedulerCmd)(), " jobs create ").concat(commonArgs)])), false), ["".concat((0, common_1.gcloudSchedulerCmd)(), " jobs update ").concat(commonArgs)], false);
42854
42902
  }).flat();
42855
42903
  };
42856
42904
  exports.getCreateScheduleScripts = getCreateScheduleScripts;
@@ -42936,9 +42984,10 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
42936
42984
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
42937
42985
  "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true,
42938
42986
  ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all",
42939
- "cpu-boost": true
42987
+ "cpu-boost": true,
42988
+ "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment
42940
42989
  }));
42941
- return "gcloud run deploy ".concat(fullServiceName, " ").concat(argsString);
42990
+ return "".concat((0, common_1.gcloudRunCmd)(), " deploy ").concat(fullServiceName, " ").concat(argsString);
42942
42991
  };
42943
42992
  exports.getServiceDeployScript = getServiceDeployScript;
42944
42993
  var getServiceDeleteScript = function (context, serviceSuffix) {
@@ -42946,7 +42995,7 @@ var getServiceDeleteScript = function (context, serviceSuffix) {
42946
42995
  var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
42947
42996
  var serviceName = (0, getServiceName_1.getServiceName)(context);
42948
42997
  var fullServiceName = serviceSuffix ? "".concat(serviceName, "-").concat(serviceSuffix) : serviceName;
42949
- return ["gcloud run services delete ".concat(fullServiceName, " ").concat(commonArgsString)];
42998
+ return ["".concat((0, common_1.gcloudRunCmd)(), " services delete ").concat(fullServiceName, " ").concat(commonArgsString)];
42950
42999
  };
42951
43000
  exports.getServiceDeleteScript = getServiceDeleteScript;
42952
43001
 
@@ -42991,11 +43040,23 @@ var __read = this && this.__read || function (o, n) {
42991
43040
  return ar;
42992
43041
  };
42993
43042
  exports.__esModule = true;
42994
- exports.getCommonDeployArgs = exports.getCommonCloudRunArgs = exports.getCloudRunDeployConfig = exports.makeLabelString = exports.setGoogleProjectNumberScript = void 0;
43043
+ exports.getCommonDeployArgs = exports.getCommonCloudRunArgs = exports.getCloudRunDeployConfig = exports.makeLabelString = exports.setGoogleProjectNumberScript = exports.gcloudSchedulerCmd = exports.gcloudRunCmd = exports.gcloudCmd = void 0;
42995
43044
  var types_1 = __nccwpck_require__(3109);
42996
43045
  var artifactsRegistry_1 = __nccwpck_require__(8159);
43046
+ var gcloudCmd = function (version) {
43047
+ return version ? "gcloud ".concat(version) : "gcloud";
43048
+ };
43049
+ exports.gcloudCmd = gcloudCmd;
43050
+ var gcloudRunCmd = function (version) {
43051
+ return "".concat((0, exports.gcloudCmd)(version), " run");
43052
+ };
43053
+ exports.gcloudRunCmd = gcloudRunCmd;
43054
+ var gcloudSchedulerCmd = function (version) {
43055
+ return "".concat((0, exports.gcloudCmd)(version), " scheduler");
43056
+ };
43057
+ exports.gcloudSchedulerCmd = gcloudSchedulerCmd;
42997
43058
  var setGoogleProjectNumberScript = function (deployConfig) {
42998
- return ["export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe ".concat(deployConfig.projectId, " --format=\"value(projectNumber)\")"), "echo \"GCLOUD_PROJECT_NUMBER: $GCLOUD_PROJECT_NUMBER\""];
43059
+ return ["export GCLOUD_PROJECT_NUMBER=$(".concat((0, exports.gcloudCmd)(), " projects describe ").concat(deployConfig.projectId, " --format=\"value(projectNumber)\")"), "echo \"GCLOUD_PROJECT_NUMBER: $GCLOUD_PROJECT_NUMBER\""];
42999
43060
  };
43000
43061
  exports.setGoogleProjectNumberScript = setGoogleProjectNumberScript;
43001
43062
  var makeLabelString = function (obj) {
@@ -43405,22 +43466,28 @@ var lodash_1 = __nccwpck_require__(3255);
43405
43466
  * @param args args record
43406
43467
  * @returns
43407
43468
  */
43408
- var createArgsString = function (args) {
43409
- return Object.entries(args).filter(function (_a) {
43410
- var _b = __read(_a, 2),
43411
- value = _b[1];
43412
- return !(0, lodash_1.isNil)(value);
43413
- }).map(function (_a) {
43414
- var _b = __read(_a, 2),
43415
- key = _b[0],
43416
- value = _b[1];
43417
- if (value === true) {
43418
- return "--".concat(key);
43419
- } else if (value === false) {
43420
- return "--no-".concat(key);
43421
- }
43422
- return "--".concat(key, "=").concat(value);
43423
- }).join(" ");
43469
+ var createArgsString = function () {
43470
+ var args = [];
43471
+ for (var _i = 0; _i < arguments.length; _i++) {
43472
+ args[_i] = arguments[_i];
43473
+ }
43474
+ return args.map(function (argObj) {
43475
+ return Object.entries(argObj).filter(function (_a) {
43476
+ var _b = __read(_a, 2),
43477
+ value = _b[1];
43478
+ return !(0, lodash_1.isNil)(value);
43479
+ }).map(function (_a) {
43480
+ var _b = __read(_a, 2),
43481
+ key = _b[0],
43482
+ value = _b[1];
43483
+ if (value === true) {
43484
+ return "--".concat(key);
43485
+ } else if (value === false) {
43486
+ return "--no-".concat(key);
43487
+ }
43488
+ return "--".concat(key, "=").concat(value);
43489
+ });
43490
+ }).flat().join(" ");
43424
43491
  };
43425
43492
  exports.createArgsString = createArgsString;
43426
43493