@catladder/cli 0.0.0-new-release-a895e12e → 0.0.0-new-cli-80ac360a

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 (846) hide show
  1. package/README.md +23 -5
  2. package/babel-inline.json +11 -0
  3. package/dist/bundles/catci/index.js +2258 -2364
  4. package/dist/bundles/catenv/index.js +6528 -6469
  5. package/dist/bundles/cli/index.js +136142 -160208
  6. package/dist/cli/src/adapters/baseContext.d.ts +22 -0
  7. package/dist/cli/src/adapters/baseContext.js +31 -0
  8. package/dist/cli/src/adapters/baseContext.js.map +1 -0
  9. package/dist/cli/src/adapters/programmatic.d.ts +26 -0
  10. package/dist/cli/src/adapters/programmatic.js +67 -0
  11. package/dist/cli/src/adapters/programmatic.js.map +1 -0
  12. package/dist/cli/src/adapters/terminal.d.ts +28 -0
  13. package/dist/cli/src/adapters/terminal.js +201 -0
  14. package/dist/cli/src/adapters/terminal.js.map +1 -0
  15. package/dist/cli/src/apps/catci/catci.d.ts +1 -1
  16. package/dist/cli/src/apps/catci/catci.js +23 -20
  17. package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +16 -16
  18. package/dist/cli/src/apps/catci/commands/security/auditDocument.js +54 -65
  19. package/dist/cli/src/apps/catci/commands/security/commands.d.ts +1 -1
  20. package/dist/cli/src/apps/catci/commands/security/commands.js +91 -83
  21. package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +11 -6
  22. package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +43 -43
  23. package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -3
  24. package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +16 -12
  25. package/dist/cli/src/apps/catenv/catenv.d.ts +5 -2
  26. package/dist/cli/src/apps/catenv/catenv.js +17 -16
  27. package/dist/cli/src/apps/catenv/catenv.js.map +1 -1
  28. package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
  29. package/dist/cli/src/apps/catenv/printVariables.js +42 -39
  30. package/dist/cli/src/apps/catenv/types.d.ts +3 -3
  31. package/dist/cli/src/apps/catenv/types.js +4 -2
  32. package/dist/cli/src/apps/catenv/utils.d.ts +9 -6
  33. package/dist/cli/src/apps/catenv/utils.js +25 -21
  34. package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -0
  35. package/dist/cli/src/apps/catenv/verboseBanner.js +26 -0
  36. package/dist/cli/src/apps/catenv/verboseBanner.js.map +1 -0
  37. package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
  38. package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +25 -22
  39. package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
  40. package/dist/cli/src/apps/catenv/writeEnvDTs.js +31 -32
  41. package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
  42. package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +56 -52
  43. package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +2 -5
  44. package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +97 -127
  45. package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +1 -1
  46. package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +2 -2
  47. package/dist/cli/src/apps/cli/commands/project/setup/index.js +25 -29
  48. package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
  49. package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +2 -2
  50. package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +15 -13
  51. package/dist/cli/src/apps/cli/commands/project/setup/logSection.js.map +1 -1
  52. package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +2 -2
  53. package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +40 -31
  54. package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js.map +1 -1
  55. package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +2 -2
  56. package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +137 -133
  57. package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js.map +1 -1
  58. package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +2 -2
  59. package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +42 -47
  60. package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -1
  61. package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +2 -2
  62. package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +15 -13
  63. package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -1
  64. package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +2 -2
  65. package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +70 -69
  66. package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -1
  67. package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +2 -2
  68. package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +15 -7
  69. package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js.map +1 -1
  70. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
  71. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +21 -16
  72. package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +9 -1
  73. package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +35 -28
  74. package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js.map +1 -1
  75. package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
  76. package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +35 -30
  77. package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +2 -1
  78. package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +17 -15
  79. package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js.map +1 -1
  80. package/dist/cli/src/catci.d.ts +1 -1
  81. package/dist/cli/src/catci.js +5 -3
  82. package/dist/cli/src/catenv.d.ts +1 -1
  83. package/dist/cli/src/catenv.js +21 -12
  84. package/dist/cli/src/catenv.js.map +1 -1
  85. package/dist/cli/src/cli.d.ts +1 -1
  86. package/dist/cli/src/cli.js +181 -6
  87. package/dist/cli/src/cli.js.map +1 -1
  88. package/dist/cli/src/commands/cloudSQL/commandRestoreDb.d.ts +46 -0
  89. package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js +111 -0
  90. package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js.map +1 -0
  91. package/dist/cli/src/commands/fun/commandDadjoke.d.ts +1 -0
  92. package/dist/cli/src/commands/fun/commandDadjoke.js +30 -0
  93. package/dist/cli/src/commands/fun/commandDadjoke.js.map +1 -0
  94. package/dist/cli/src/commands/fun/commandStarwars.d.ts +1 -0
  95. package/dist/cli/src/commands/fun/commandStarwars.js +19 -0
  96. package/dist/cli/src/commands/fun/commandStarwars.js.map +1 -0
  97. package/dist/cli/src/commands/general/commandKubeCurrentContext.d.ts +1 -0
  98. package/dist/cli/src/commands/general/commandKubeCurrentContext.js +17 -0
  99. package/dist/cli/src/commands/general/commandKubeCurrentContext.js.map +1 -0
  100. package/dist/cli/src/commands/general/commandKubeGetShell.d.ts +12 -0
  101. package/dist/cli/src/commands/general/commandKubeGetShell.js +36 -0
  102. package/dist/cli/src/commands/general/commandKubeGetShell.js.map +1 -0
  103. package/dist/cli/src/commands/general/commandKubeListNamespaces.d.ts +1 -0
  104. package/dist/cli/src/commands/general/commandKubeListNamespaces.js +20 -0
  105. package/dist/cli/src/commands/general/commandKubeListNamespaces.js.map +1 -0
  106. package/dist/cli/src/commands/general/commandKubeListPods.d.ts +7 -0
  107. package/dist/cli/src/commands/general/commandKubeListPods.js +26 -0
  108. package/dist/cli/src/commands/general/commandKubeListPods.js.map +1 -0
  109. package/dist/cli/src/commands/general/commandKubeListSecrets.d.ts +7 -0
  110. package/dist/cli/src/commands/general/commandKubeListSecrets.js +26 -0
  111. package/dist/cli/src/commands/general/commandKubeListSecrets.js.map +1 -0
  112. package/dist/cli/src/commands/general/commandKubePortForward.d.ts +20 -0
  113. package/dist/cli/src/commands/general/commandKubePortForward.js +46 -0
  114. package/dist/cli/src/commands/general/commandKubePortForward.js.map +1 -0
  115. package/dist/cli/src/commands/general/commandKubeStopPortforward.d.ts +7 -0
  116. package/dist/cli/src/commands/general/commandKubeStopPortforward.js +24 -0
  117. package/dist/cli/src/commands/general/commandKubeStopPortforward.js.map +1 -0
  118. package/dist/cli/src/commands/index.d.ts +34 -0
  119. package/dist/cli/src/commands/index.js +261 -0
  120. package/dist/cli/src/commands/index.js.map +1 -0
  121. package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.d.ts +16 -0
  122. package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js +89 -0
  123. package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js.map +1 -0
  124. package/dist/cli/src/commands/mongodb/commandMongoGetShell.d.ts +16 -0
  125. package/dist/cli/src/commands/mongodb/commandMongoGetShell.js +36 -0
  126. package/dist/cli/src/commands/mongodb/commandMongoGetShell.js.map +1 -0
  127. package/dist/cli/src/commands/mongodb/commandMongoPortForward.d.ts +21 -0
  128. package/dist/cli/src/commands/mongodb/commandMongoPortForward.js +65 -0
  129. package/dist/cli/src/commands/mongodb/commandMongoPortForward.js.map +1 -0
  130. package/dist/cli/src/commands/project/commandCloudSqlProxy.d.ts +13 -0
  131. package/dist/cli/src/commands/project/commandCloudSqlProxy.js +127 -0
  132. package/dist/cli/src/commands/project/commandCloudSqlProxy.js.map +1 -0
  133. package/dist/cli/src/commands/project/commandConfigSecrets.d.ts +8 -0
  134. package/dist/cli/src/commands/project/commandConfigSecrets.js +35 -0
  135. package/dist/cli/src/commands/project/commandConfigSecrets.js.map +1 -0
  136. package/dist/cli/src/commands/project/commandDeletePods.d.ts +13 -0
  137. package/dist/cli/src/commands/project/commandDeletePods.js +49 -0
  138. package/dist/cli/src/commands/project/commandDeletePods.js.map +1 -0
  139. package/dist/cli/src/commands/project/commandDeleteProject.d.ts +8 -0
  140. package/dist/cli/src/commands/project/commandDeleteProject.js +41 -0
  141. package/dist/cli/src/commands/project/commandDeleteProject.js.map +1 -0
  142. package/dist/cli/src/commands/project/commandEnvVars.d.ts +8 -0
  143. package/dist/cli/src/commands/project/commandEnvVars.js +32 -0
  144. package/dist/cli/src/commands/project/commandEnvVars.js.map +1 -0
  145. package/dist/cli/src/commands/project/commandGetMyTotalWorktime.d.ts +1 -0
  146. package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js +19 -0
  147. package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js.map +1 -0
  148. package/dist/cli/src/commands/project/commandGetShell.d.ts +13 -0
  149. package/dist/cli/src/commands/project/commandGetShell.js +41 -0
  150. package/dist/cli/src/commands/project/commandGetShell.js.map +1 -0
  151. package/dist/cli/src/commands/project/commandGitlabCi.d.ts +14 -0
  152. package/dist/cli/src/commands/project/commandGitlabCi.js +109 -0
  153. package/dist/cli/src/commands/project/commandGitlabCi.js.map +1 -0
  154. package/dist/cli/src/commands/project/commandListPods.d.ts +8 -0
  155. package/dist/cli/src/commands/project/commandListPods.js +31 -0
  156. package/dist/cli/src/commands/project/commandListPods.js.map +1 -0
  157. package/dist/cli/src/commands/project/commandNamespace.d.ts +8 -0
  158. package/dist/cli/src/commands/project/commandNamespace.js +26 -0
  159. package/dist/cli/src/commands/project/commandNamespace.js.map +1 -0
  160. package/dist/cli/src/commands/project/commandOpenEnv.d.ts +8 -0
  161. package/dist/cli/src/commands/project/commandOpenEnv.js +40 -0
  162. package/dist/cli/src/commands/project/commandOpenEnv.js.map +1 -0
  163. package/dist/cli/src/commands/project/commandOpenGit.d.ts +1 -0
  164. package/dist/cli/src/commands/project/commandOpenGit.js +17 -0
  165. package/dist/cli/src/commands/project/commandOpenGit.js.map +1 -0
  166. package/dist/cli/src/commands/project/commandOpenLogs.d.ts +8 -0
  167. package/dist/cli/src/commands/project/commandOpenLogs.js +32 -0
  168. package/dist/cli/src/commands/project/commandOpenLogs.js.map +1 -0
  169. package/dist/cli/src/commands/project/commandPauseProject.d.ts +8 -0
  170. package/dist/cli/src/commands/project/commandPauseProject.js +41 -0
  171. package/dist/cli/src/commands/project/commandPauseProject.js.map +1 -0
  172. package/dist/cli/src/commands/project/commandPortForward.d.ts +25 -0
  173. package/dist/cli/src/commands/project/commandPortForward.js +95 -0
  174. package/dist/cli/src/commands/project/commandPortForward.js.map +1 -0
  175. package/dist/cli/src/commands/project/commandProjectRestoreDb.d.ts +19 -0
  176. package/dist/cli/src/commands/project/commandProjectRestoreDb.js +159 -0
  177. package/dist/cli/src/commands/project/commandProjectRestoreDb.js.map +1 -0
  178. package/dist/cli/src/commands/project/commandRenewToken.d.ts +1 -0
  179. package/dist/cli/src/commands/project/commandRenewToken.js +17 -0
  180. package/dist/cli/src/commands/project/commandRenewToken.js.map +1 -0
  181. package/dist/cli/src/commands/project/commandSecretsClearBackups.d.ts +7 -0
  182. package/dist/cli/src/commands/project/commandSecretsClearBackups.js +24 -0
  183. package/dist/cli/src/commands/project/commandSecretsClearBackups.js.map +1 -0
  184. package/dist/cli/src/commands/project/commandSecurityEvaluate.d.ts +1 -0
  185. package/dist/cli/src/commands/project/commandSecurityEvaluate.js +26 -0
  186. package/dist/cli/src/commands/project/commandSecurityEvaluate.js.map +1 -0
  187. package/dist/cli/src/commands/project/commandSetup.d.ts +7 -0
  188. package/dist/cli/src/commands/project/commandSetup.js +24 -0
  189. package/dist/cli/src/commands/project/commandSetup.js.map +1 -0
  190. package/dist/cli/src/commands/project/commandTriggerCronjob.d.ts +25 -0
  191. package/dist/cli/src/commands/project/commandTriggerCronjob.js +95 -0
  192. package/dist/cli/src/commands/project/commandTriggerCronjob.js.map +1 -0
  193. package/dist/cli/src/completion.d.ts +23 -0
  194. package/dist/cli/src/completion.js +173 -0
  195. package/dist/cli/src/completion.js.map +1 -0
  196. package/dist/cli/src/config/getProjectConfig.d.ts +12 -8
  197. package/dist/cli/src/config/getProjectConfig.js +97 -95
  198. package/dist/cli/src/config/getProjectConfig.js.map +1 -1
  199. package/dist/cli/src/config/parseChoice.d.ts +3 -3
  200. package/dist/cli/src/config/parseChoice.js +11 -6
  201. package/dist/cli/src/core/defineCommand.d.ts +27 -0
  202. package/dist/cli/src/core/defineCommand.js +35 -0
  203. package/dist/cli/src/core/defineCommand.js.map +1 -0
  204. package/dist/cli/src/core/index.d.ts +5 -0
  205. package/dist/cli/src/core/index.js +52 -0
  206. package/dist/cli/src/core/index.js.map +1 -0
  207. package/dist/cli/src/core/registry.d.ts +5 -0
  208. package/dist/cli/src/core/registry.js +26 -0
  209. package/dist/cli/src/core/registry.js.map +1 -0
  210. package/dist/cli/src/core/runner.d.ts +19 -0
  211. package/dist/cli/src/core/runner.js +29 -0
  212. package/dist/cli/src/core/runner.js.map +1 -0
  213. package/dist/cli/src/core/types.d.ts +100 -0
  214. package/dist/cli/src/core/types.js +17 -0
  215. package/dist/cli/src/core/types.js.map +1 -0
  216. package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
  217. package/dist/cli/src/gcloud/artifactsRegistry.js +12 -11
  218. package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +1 -1
  219. package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +23 -22
  220. package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +2 -2
  221. package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +19 -12
  222. package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -1
  223. package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
  224. package/dist/cli/src/gcloud/cloudSql/copyDb.js +30 -16
  225. package/dist/cli/src/gcloud/cloudSql/copyDb.js.map +1 -1
  226. package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +9 -0
  227. package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +24 -0
  228. package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js.map +1 -0
  229. package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
  230. package/dist/cli/src/gcloud/cloudSql/startProxy.js +55 -39
  231. package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
  232. package/dist/cli/src/gcloud/enableServices.js +8 -6
  233. package/dist/cli/src/gcloud/openDashboard.d.ts +2 -2
  234. package/dist/cli/src/gcloud/openDashboard.js +17 -13
  235. package/dist/cli/src/gcloud/openDashboard.js.map +1 -1
  236. package/dist/cli/src/gcloud/serviceAccounts.d.ts +8 -8
  237. package/dist/cli/src/gcloud/serviceAccounts.js +64 -58
  238. package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -1
  239. package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
  240. package/dist/cli/src/git/getGetMainBranch.js +9 -5
  241. package/dist/cli/src/git/gitConfig.d.ts +11 -6
  242. package/dist/cli/src/git/gitConfig.js +17 -11
  243. package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
  244. package/dist/cli/src/git/gitProjectInformation.js +30 -20
  245. package/dist/cli/src/git/index.d.ts +1 -1
  246. package/dist/cli/src/git/index.js +23 -16
  247. package/dist/cli/src/index.d.ts +1 -1
  248. package/dist/cli/src/index.js +4 -2
  249. package/dist/cli/src/k8sApi/index.d.ts +1 -1
  250. package/dist/cli/src/k8sApi/index.js +14 -12
  251. package/dist/cli/src/kubernetes/index.d.ts +1 -1
  252. package/dist/cli/src/kubernetes/index.js +24 -17
  253. package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +3 -3
  254. package/dist/cli/src/kubernetes/openKubernetesDashboards.js +35 -33
  255. package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -1
  256. package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
  257. package/dist/cli/src/kubernetes/portForward.js +7 -5
  258. package/dist/cli/src/packageInfos.d.ts +1 -1
  259. package/dist/cli/src/packageInfos.js +5 -3
  260. package/dist/cli/src/types/types.d.ts +13 -13
  261. package/dist/cli/src/types/types.js +4 -2
  262. package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
  263. package/dist/cli/src/utils/boxWithAscii.js +12 -10
  264. package/dist/cli/src/utils/cluster.d.ts +1 -1
  265. package/dist/cli/src/utils/cluster.js +8 -6
  266. package/dist/cli/src/utils/editAsFile.d.ts +1 -1
  267. package/dist/cli/src/utils/editAsFile.js +25 -17
  268. package/dist/cli/src/utils/files.d.ts +1 -1
  269. package/dist/cli/src/utils/files.js +15 -12
  270. package/dist/cli/src/utils/getEditor.d.ts +2 -2
  271. package/dist/cli/src/utils/getEditor.js +20 -14
  272. package/dist/cli/src/utils/gitlab.d.ts +18 -18
  273. package/dist/cli/src/utils/gitlab.js +187 -174
  274. package/dist/cli/src/utils/gitlab.js.map +1 -1
  275. package/dist/cli/src/utils/log.d.ts +4 -4
  276. package/dist/cli/src/utils/log.js +18 -16
  277. package/dist/cli/src/utils/portForwards.d.ts +5 -5
  278. package/dist/cli/src/utils/portForwards.js +32 -31
  279. package/dist/cli/src/utils/preferences.d.ts +1 -1
  280. package/dist/cli/src/utils/preferences.js +43 -36
  281. package/dist/cli/src/utils/projects/index.d.ts +1 -1
  282. package/dist/cli/src/utils/projects/index.js +24 -21
  283. package/dist/cli/src/utils/promise.d.ts +1 -1
  284. package/dist/cli/src/utils/promise.js +8 -6
  285. package/dist/cli/src/utils/shell.d.ts +1 -1
  286. package/dist/cli/src/utils/shell.js +20 -19
  287. package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
  288. package/dist/pipeline/src/bash/BashExpression.js +44 -45
  289. package/dist/pipeline/src/bash/bashEscape.d.ts +6 -4
  290. package/dist/pipeline/src/bash/bashEscape.js +63 -73
  291. package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +3 -5
  292. package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +7 -6
  293. package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
  294. package/dist/pipeline/src/bash/bashYaml.js +41 -46
  295. package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
  296. package/dist/pipeline/src/bash/getInjectVarsScript.js +11 -14
  297. package/dist/pipeline/src/bash/index.d.ts +1 -1
  298. package/dist/pipeline/src/bash/index.js +23 -16
  299. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
  300. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +46 -41
  301. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -1
  302. package/dist/pipeline/src/build/base/constants.d.ts +4 -4
  303. package/dist/pipeline/src/build/base/constants.js +8 -6
  304. package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +7 -1
  305. package/dist/pipeline/src/build/base/createAppBuildJob.js +37 -43
  306. package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
  307. package/dist/pipeline/src/build/base/createArtifactsConfig.js +16 -25
  308. package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
  309. package/dist/pipeline/src/build/base/createBuildJobDefinition.js +16 -22
  310. package/dist/pipeline/src/build/base/createBuildJobDefinition.js.map +1 -1
  311. package/dist/pipeline/src/build/base/index.d.ts +4 -4
  312. package/dist/pipeline/src/build/base/index.js +15 -37
  313. package/dist/pipeline/src/build/base/index.js.map +1 -1
  314. package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
  315. package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
  316. package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
  317. package/dist/pipeline/src/build/base/writeDotEnv.js +19 -21
  318. package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
  319. package/dist/pipeline/src/build/cache/createJobCache.js +47 -49
  320. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
  321. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +16 -23
  322. package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
  323. package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +14 -12
  324. package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
  325. package/dist/pipeline/src/build/custom/buildJob.js +16 -16
  326. package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
  327. package/dist/pipeline/src/build/custom/index.d.ts +1 -1
  328. package/dist/pipeline/src/build/custom/index.js +7 -5
  329. package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
  330. package/dist/pipeline/src/build/custom/testJob.js +67 -59
  331. package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
  332. package/dist/pipeline/src/build/docker.d.ts +50 -46
  333. package/dist/pipeline/src/build/docker.js +112 -123
  334. package/dist/pipeline/src/build/docker.js.map +1 -1
  335. package/dist/pipeline/src/build/index.d.ts +13 -17
  336. package/dist/pipeline/src/build/index.js +80 -72
  337. package/dist/pipeline/src/build/index.js.map +1 -1
  338. package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
  339. package/dist/pipeline/src/build/node/buildJob.js +34 -37
  340. package/dist/pipeline/src/build/node/cache.d.ts +1 -1
  341. package/dist/pipeline/src/build/node/cache.js +34 -44
  342. package/dist/pipeline/src/build/node/cache.js.map +1 -1
  343. package/dist/pipeline/src/build/node/constants.d.ts +4 -4
  344. package/dist/pipeline/src/build/node/constants.js +8 -6
  345. package/dist/pipeline/src/build/node/index.d.ts +1 -1
  346. package/dist/pipeline/src/build/node/index.js +11 -9
  347. package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
  348. package/dist/pipeline/src/build/node/meteor.js +52 -45
  349. package/dist/pipeline/src/build/node/meteor.js.map +1 -1
  350. package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
  351. package/dist/pipeline/src/build/node/testJob.js +71 -81
  352. package/dist/pipeline/src/build/node/testJob.js.map +1 -1
  353. package/dist/pipeline/src/build/node/yarn.d.ts +3 -2
  354. package/dist/pipeline/src/build/node/yarn.js +33 -39
  355. package/dist/pipeline/src/build/node/yarn.js.map +1 -1
  356. package/dist/pipeline/src/build/rails/build.d.ts +1 -1
  357. package/dist/pipeline/src/build/rails/build.js +37 -43
  358. package/dist/pipeline/src/build/rails/build.js.map +1 -1
  359. package/dist/pipeline/src/build/rails/index.d.ts +1 -1
  360. package/dist/pipeline/src/build/rails/index.js +8 -6
  361. package/dist/pipeline/src/build/rails/index.js.map +1 -1
  362. package/dist/pipeline/src/build/rails/{test.d.ts → testJob.d.ts} +1 -1
  363. package/dist/pipeline/src/build/rails/testJob.js +76 -0
  364. package/dist/pipeline/src/build/rails/testJob.js.map +1 -0
  365. package/dist/pipeline/src/build/types.d.ts +294 -265
  366. package/dist/pipeline/src/build/types.js +10 -10
  367. package/dist/pipeline/src/build/types.js.map +1 -1
  368. package/dist/pipeline/src/catenv/index.d.ts +3 -3
  369. package/dist/pipeline/src/catenv/index.js +10 -8
  370. package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
  371. package/dist/pipeline/src/config/configruedEnvs.js +18 -23
  372. package/dist/pipeline/src/config/index.d.ts +1 -1
  373. package/dist/pipeline/src/config/index.js +23 -16
  374. package/dist/pipeline/src/config/readConfig.d.ts +4 -4
  375. package/dist/pipeline/src/config/readConfig.js +45 -24
  376. package/dist/pipeline/src/config/readConfig.js.map +1 -1
  377. package/dist/pipeline/src/constants.d.ts +1 -1
  378. package/dist/pipeline/src/constants.js +6 -5
  379. package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -4
  380. package/dist/pipeline/src/context/createAllComponentsContext.js +22 -16
  381. package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
  382. package/dist/pipeline/src/context/createComponentContext.js +87 -96
  383. package/dist/pipeline/src/context/createWorkspaceContext.d.ts +15 -8
  384. package/dist/pipeline/src/context/createWorkspaceContext.js +37 -28
  385. package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
  386. package/dist/pipeline/src/context/getBuildInfoVariables.js +22 -21
  387. package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
  388. package/dist/pipeline/src/context/getEnvConfig.js +29 -28
  389. package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
  390. package/dist/pipeline/src/context/getEnvType.js +10 -9
  391. package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
  392. package/dist/pipeline/src/context/getEnvironment.js +20 -16
  393. package/dist/pipeline/src/context/getEnvironmentContext.d.ts +6 -1
  394. package/dist/pipeline/src/context/getEnvironmentContext.js +35 -28
  395. package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +11 -11
  396. package/dist/pipeline/src/context/getEnvironmentVariables.js +102 -95
  397. package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -1
  398. package/dist/pipeline/src/context/getLabels.d.ts +7 -7
  399. package/dist/pipeline/src/context/getLabels.js +26 -25
  400. package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
  401. package/dist/pipeline/src/context/getReviewSlug.js +12 -10
  402. package/dist/pipeline/src/context/index.d.ts +1 -1
  403. package/dist/pipeline/src/context/index.js +23 -16
  404. package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
  405. package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
  406. package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
  407. package/dist/pipeline/src/context/utils/envVars.js +12 -12
  408. package/dist/pipeline/src/defaults/index.d.ts +1 -1
  409. package/dist/pipeline/src/defaults/index.js +6 -5
  410. package/dist/pipeline/src/defaults/index.js.map +1 -1
  411. package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
  412. package/dist/pipeline/src/deploy/base/deploy.js +75 -101
  413. package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
  414. package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
  415. package/dist/pipeline/src/deploy/base/index.js +6 -10
  416. package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
  417. package/dist/pipeline/src/deploy/base/rollback.js +30 -26
  418. package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
  419. package/dist/pipeline/src/deploy/base/stop.js +30 -31
  420. package/dist/pipeline/src/deploy/base/stop.js.map +1 -1
  421. package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
  422. package/dist/pipeline/src/deploy/base/variables.js +8 -6
  423. package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
  424. package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +55 -67
  425. package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
  426. package/dist/pipeline/src/deploy/cloudRun/cleanup.js +16 -17
  427. package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
  428. package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +44 -41
  429. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
  430. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +58 -63
  431. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
  432. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +63 -72
  433. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
  434. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +4 -0
  435. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +52 -0
  436. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js.map +1 -0
  437. package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
  438. package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +33 -38
  439. package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
  440. package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -3
  441. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
  442. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +54 -61
  443. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js.map +1 -1
  444. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
  445. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +115 -118
  446. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
  447. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +11 -31
  448. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -1
  449. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
  450. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +10 -22
  451. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -1
  452. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
  453. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +36 -39
  454. package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
  455. package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +36 -37
  456. package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
  457. package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +19 -13
  458. package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js.map +1 -1
  459. package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
  460. package/dist/pipeline/src/deploy/cloudRun/index.js +72 -76
  461. package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +9 -5
  462. package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +13 -7
  463. package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
  464. package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +13 -17
  465. package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
  466. package/dist/pipeline/src/deploy/cloudRun/utils/database.js +46 -79
  467. package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
  468. package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
  469. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
  470. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +7 -9
  471. package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
  472. package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -4
  473. package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
  474. package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +5 -3
  475. package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
  476. package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +6 -4
  477. package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
  478. package/dist/pipeline/src/deploy/cloudSql/utils.js +7 -9
  479. package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
  480. package/dist/pipeline/src/deploy/custom/deployJob.js +30 -39
  481. package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -1
  482. package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
  483. package/dist/pipeline/src/deploy/custom/index.js +9 -7
  484. package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
  485. package/dist/pipeline/src/deploy/dockerTag/deployJob.js +18 -22
  486. package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
  487. package/dist/pipeline/src/deploy/dockerTag/index.js +9 -7
  488. package/dist/pipeline/src/deploy/index.d.ts +6 -8
  489. package/dist/pipeline/src/deploy/index.js +27 -20
  490. package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +5 -3
  491. package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +25 -19
  492. package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
  493. package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +36 -35
  494. package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
  495. package/dist/pipeline/src/deploy/kubernetes/deployJob.js +46 -67
  496. package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -1
  497. package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
  498. package/dist/pipeline/src/deploy/kubernetes/index.js +54 -45
  499. package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
  500. package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +35 -34
  501. package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
  502. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +70 -63
  503. package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -24
  504. package/dist/pipeline/src/deploy/kubernetes/mongodb.js +88 -89
  505. package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -1
  506. package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
  507. package/dist/pipeline/src/deploy/types/base.js +4 -2
  508. package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
  509. package/dist/pipeline/src/deploy/types/custom.js +4 -2
  510. package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
  511. package/dist/pipeline/src/deploy/types/dockerTag.js +4 -2
  512. package/dist/pipeline/src/deploy/types/executeBase.d.ts +24 -0
  513. package/dist/pipeline/src/deploy/types/executeBase.js +5 -0
  514. package/dist/pipeline/src/deploy/types/executeBase.js.map +1 -0
  515. package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +442 -389
  516. package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -14
  517. package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -1
  518. package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
  519. package/dist/pipeline/src/deploy/types/index.js +27 -21
  520. package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
  521. package/dist/pipeline/src/deploy/types/kubernetes.js +4 -2
  522. package/dist/pipeline/src/deploy/utils.d.ts +1 -1
  523. package/dist/pipeline/src/deploy/utils.js +23 -21
  524. package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
  525. package/dist/pipeline/src/globalScriptFunctions/index.js +21 -19
  526. package/dist/pipeline/src/index.d.ts +2 -1
  527. package/dist/pipeline/src/index.js +24 -16
  528. package/dist/pipeline/src/index.js.map +1 -1
  529. package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
  530. package/dist/pipeline/src/pipeline/agent/createAgentContext.js +41 -37
  531. package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +1 -1
  532. package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +30 -31
  533. package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +1 -1
  534. package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +36 -43
  535. package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js.map +1 -1
  536. package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
  537. package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +7 -5
  538. package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
  539. package/dist/pipeline/src/pipeline/agent/prompts.js +32 -14
  540. package/dist/pipeline/src/pipeline/agent/shared.d.ts +6 -4
  541. package/dist/pipeline/src/pipeline/agent/shared.js +26 -25
  542. package/dist/pipeline/src/pipeline/agent/shared.js.map +1 -1
  543. package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
  544. package/dist/pipeline/src/pipeline/agent/utils.js +11 -9
  545. package/dist/pipeline/src/pipeline/createAllJobs.d.ts +17 -13
  546. package/dist/pipeline/src/pipeline/createAllJobs.js +56 -44
  547. package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
  548. package/dist/pipeline/src/pipeline/createJobsForComponent.js +28 -27
  549. package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
  550. package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +8 -6
  551. package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +1 -1
  552. package/dist/pipeline/src/pipeline/createMainPipeline.js +85 -78
  553. package/dist/pipeline/src/pipeline/createMainPipeline.js.map +1 -1
  554. package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
  555. package/dist/pipeline/src/pipeline/generatePipelineFiles.js +78 -58
  556. package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +1 -1
  557. package/dist/pipeline/src/pipeline/getPipelineStages.js +8 -10
  558. package/dist/pipeline/src/pipeline/gitlab/cache.d.ts +9 -0
  559. package/dist/pipeline/src/pipeline/gitlab/cache.js +38 -0
  560. package/dist/pipeline/src/pipeline/gitlab/cache.js.map +1 -0
  561. package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
  562. package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +229 -241
  563. package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -1
  564. package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +7 -2
  565. package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +64 -59
  566. package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js.map +1 -1
  567. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +34 -32
  568. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +38 -46
  569. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -1
  570. package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +1 -1
  571. package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +10 -40
  572. package/dist/pipeline/src/pipeline/index.d.ts +1 -1
  573. package/dist/pipeline/src/pipeline/index.js +23 -16
  574. package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
  575. package/dist/pipeline/src/pipeline/packageManager.js +47 -59
  576. package/dist/pipeline/src/rules/index.d.ts +1 -1
  577. package/dist/pipeline/src/rules/index.js +15 -13
  578. package/dist/pipeline/src/runner/index.d.ts +1 -1
  579. package/dist/pipeline/src/runner/index.js +6 -4
  580. package/dist/pipeline/src/types/agent.d.ts +15 -15
  581. package/dist/pipeline/src/types/agent.js +4 -2
  582. package/dist/pipeline/src/types/config.d.ts +152 -150
  583. package/dist/pipeline/src/types/config.js +24 -28
  584. package/dist/pipeline/src/types/context.d.ts +104 -104
  585. package/dist/pipeline/src/types/context.js +9 -7
  586. package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
  587. package/dist/pipeline/src/types/environmentContext.js +4 -2
  588. package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
  589. package/dist/pipeline/src/types/gitlab-ci-yml.js +4 -2
  590. package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
  591. package/dist/pipeline/src/types/gitlab-types.js +4 -2
  592. package/dist/pipeline/src/types/hooks.d.ts +31 -22
  593. package/dist/pipeline/src/types/hooks.js +4 -2
  594. package/dist/pipeline/src/types/index.d.ts +1 -1
  595. package/dist/pipeline/src/types/index.js +23 -16
  596. package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
  597. package/dist/pipeline/src/types/jobDefinition.js +4 -2
  598. package/dist/pipeline/src/types/jobs.d.ts +93 -94
  599. package/dist/pipeline/src/types/jobs.js +5 -12
  600. package/dist/pipeline/src/types/pipeline.d.ts +1 -1
  601. package/dist/pipeline/src/types/pipeline.js +4 -2
  602. package/dist/pipeline/src/types/release.d.ts +6 -6
  603. package/dist/pipeline/src/types/release.js +4 -2
  604. package/dist/pipeline/src/types/utils.d.ts +1 -3
  605. package/dist/pipeline/src/types/utils.js +4 -2
  606. package/dist/pipeline/src/utils/gitlab.d.ts +2 -2
  607. package/dist/pipeline/src/utils/gitlab.js +12 -15
  608. package/dist/pipeline/src/utils/index.d.ts +1 -1
  609. package/dist/pipeline/src/utils/index.js +12 -9
  610. package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
  611. package/dist/pipeline/src/utils/jsonParse.js +11 -10
  612. package/dist/pipeline/src/utils/measureTime.d.ts +6 -0
  613. package/dist/pipeline/src/utils/measureTime.js +47 -0
  614. package/dist/pipeline/src/utils/measureTime.js.map +1 -0
  615. package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
  616. package/dist/pipeline/src/utils/removeUndefined.js +6 -4
  617. package/dist/pipeline/src/utils/writeFiles.d.ts +11 -9
  618. package/dist/pipeline/src/utils/writeFiles.js +53 -47
  619. package/dist/pipeline/src/utils/writeFiles.js.map +1 -1
  620. package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
  621. package/dist/pipeline/src/variables/VariableValue.js +4 -2
  622. package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
  623. package/dist/pipeline/src/variables/VariableValueContainingReferences.js +45 -51
  624. package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
  625. package/dist/pipeline/src/variables/resolveAllReferences.js +17 -18
  626. package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
  627. package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +14 -17
  628. package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
  629. package/dist/pipeline/src/variables/resolveReferencesOnce.js +17 -16
  630. package/dist/tsconfig.tsbuildinfo +1 -1
  631. package/package.json +14 -5
  632. package/src/adapters/baseContext.ts +55 -0
  633. package/src/adapters/programmatic.ts +88 -0
  634. package/src/adapters/terminal.ts +202 -0
  635. package/src/apps/catenv/catenv.ts +8 -2
  636. package/src/apps/catenv/verboseBanner.ts +33 -0
  637. package/src/apps/cli/commands/project/commandConfigSecrets.ts +8 -33
  638. package/src/apps/cli/commands/project/setup/index.ts +2 -2
  639. package/src/apps/cli/commands/project/setup/logSection.ts +2 -2
  640. package/src/apps/cli/commands/project/setup/setupAccessTokens.ts +2 -2
  641. package/src/apps/cli/commands/project/setup/setupAgents.ts +18 -18
  642. package/src/apps/cli/commands/project/setup/setupCloudRun.ts +2 -2
  643. package/src/apps/cli/commands/project/setup/setupContext.ts +2 -5
  644. package/src/apps/cli/commands/project/setup/setupKubernetes.ts +2 -2
  645. package/src/apps/cli/commands/project/setup/setupTopic.ts +2 -2
  646. package/src/apps/cli/commands/project/utils/ensureCluster.ts +19 -12
  647. package/src/apps/cli/utils/getGoogleAuthUserNumber.ts +5 -4
  648. package/src/catenv.ts +6 -2
  649. package/src/cli.ts +192 -2
  650. package/src/commands/cloudSQL/commandRestoreDb.ts +105 -0
  651. package/src/commands/fun/commandDadjoke.ts +18 -0
  652. package/src/commands/fun/commandStarwars.ts +14 -0
  653. package/src/commands/general/commandKubeCurrentContext.ts +12 -0
  654. package/src/commands/general/commandKubeGetShell.ts +32 -0
  655. package/src/commands/general/commandKubeListNamespaces.ts +15 -0
  656. package/src/commands/general/commandKubeListPods.ts +21 -0
  657. package/src/commands/general/commandKubeListSecrets.ts +21 -0
  658. package/src/commands/general/commandKubePortForward.ts +35 -0
  659. package/src/commands/general/commandKubeStopPortforward.ts +15 -0
  660. package/src/commands/index.ts +46 -0
  661. package/src/commands/mongodb/commandMongoDestroyMember.ts +133 -0
  662. package/src/commands/mongodb/commandMongoGetShell.ts +36 -0
  663. package/src/commands/mongodb/commandMongoPortForward.ts +56 -0
  664. package/src/commands/project/commandCloudSqlProxy.ts +189 -0
  665. package/src/commands/project/commandConfigSecrets.ts +30 -0
  666. package/src/commands/project/commandDeletePods.ts +53 -0
  667. package/src/commands/project/commandDeleteProject.ts +33 -0
  668. package/src/commands/project/commandEnvVars.ts +24 -0
  669. package/src/commands/project/commandGetMyTotalWorktime.ts +14 -0
  670. package/src/commands/project/commandGetShell.ts +39 -0
  671. package/src/commands/project/commandGitlabCi.ts +122 -0
  672. package/src/commands/project/commandListPods.ts +30 -0
  673. package/src/commands/project/commandNamespace.ts +21 -0
  674. package/src/commands/project/commandOpenEnv.ts +27 -0
  675. package/src/commands/project/commandOpenGit.ts +12 -0
  676. package/src/commands/project/commandOpenLogs.ts +27 -0
  677. package/src/commands/project/commandPauseProject.ts +33 -0
  678. package/src/commands/project/commandPortForward.ts +74 -0
  679. package/src/commands/project/commandProjectRestoreDb.ts +201 -0
  680. package/src/commands/project/commandRenewToken.ts +12 -0
  681. package/src/commands/project/commandSecretsClearBackups.ts +19 -0
  682. package/src/commands/project/commandSecurityEvaluate.ts +22 -0
  683. package/src/commands/project/commandSetup.ts +16 -0
  684. package/src/commands/project/commandTriggerCronjob.ts +99 -0
  685. package/src/completion.ts +221 -0
  686. package/src/config/getProjectConfig.ts +11 -10
  687. package/src/core/defineCommand.ts +32 -0
  688. package/src/core/index.ts +23 -0
  689. package/src/core/registry.ts +22 -0
  690. package/src/core/runner.ts +31 -0
  691. package/src/core/types.ts +136 -0
  692. package/src/gcloud/cloudRun/openCloudRunDashboards.ts +2 -2
  693. package/src/gcloud/cloudSql/copyDb.ts +7 -3
  694. package/src/gcloud/cloudSql/parseConnectionString.ts +28 -0
  695. package/src/gcloud/openDashboard.ts +3 -3
  696. package/src/gcloud/serviceAccounts.ts +2 -2
  697. package/src/kubernetes/openKubernetesDashboards.ts +3 -3
  698. package/src/utils/gitlab.ts +46 -58
  699. package/src/utils/log.ts +2 -2
  700. package/dist/cli/src/apps/cli/cli.d.ts +0 -2
  701. package/dist/cli/src/apps/cli/cli.js +0 -39
  702. package/dist/cli/src/apps/cli/cli.js.map +0 -1
  703. package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +0 -3
  704. package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +0 -111
  705. package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +0 -1
  706. package/dist/cli/src/apps/cli/commands/cloudSQL/index.d.ts +0 -3
  707. package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +0 -10
  708. package/dist/cli/src/apps/cli/commands/cloudSQL/index.js.map +0 -1
  709. package/dist/cli/src/apps/cli/commands/general/index.d.ts +0 -4
  710. package/dist/cli/src/apps/cli/commands/general/index.js +0 -78
  711. package/dist/cli/src/apps/cli/commands/general/index.js.map +0 -1
  712. package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.d.ts +0 -3
  713. package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +0 -11
  714. package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js.map +0 -1
  715. package/dist/cli/src/apps/cli/commands/general/portForward.d.ts +0 -3
  716. package/dist/cli/src/apps/cli/commands/general/portForward.js +0 -40
  717. package/dist/cli/src/apps/cli/commands/general/portForward.js.map +0 -1
  718. package/dist/cli/src/apps/cli/commands/mongodb/index.d.ts +0 -3
  719. package/dist/cli/src/apps/cli/commands/mongodb/index.js +0 -14
  720. package/dist/cli/src/apps/cli/commands/mongodb/index.js.map +0 -1
  721. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.d.ts +0 -3
  722. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +0 -94
  723. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +0 -1
  724. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.d.ts +0 -3
  725. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +0 -36
  726. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js.map +0 -1
  727. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.d.ts +0 -3
  728. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +0 -57
  729. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js.map +0 -1
  730. package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +0 -3
  731. package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +0 -126
  732. package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +0 -1
  733. package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.d.ts +0 -3
  734. package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +0 -121
  735. package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +0 -1
  736. package/dist/cli/src/apps/cli/commands/project/commandDeletePods.d.ts +0 -3
  737. package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +0 -47
  738. package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js.map +0 -1
  739. package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.d.ts +0 -3
  740. package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +0 -28
  741. package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js.map +0 -1
  742. package/dist/cli/src/apps/cli/commands/project/commandEnvVars.d.ts +0 -3
  743. package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +0 -13
  744. package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js.map +0 -1
  745. package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.d.ts +0 -3
  746. package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +0 -11
  747. package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +0 -1
  748. package/dist/cli/src/apps/cli/commands/project/commandGetShell.d.ts +0 -3
  749. package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +0 -34
  750. package/dist/cli/src/apps/cli/commands/project/commandGetShell.js.map +0 -1
  751. package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.d.ts +0 -3
  752. package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +0 -86
  753. package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js.map +0 -1
  754. package/dist/cli/src/apps/cli/commands/project/commandListPods.d.ts +0 -3
  755. package/dist/cli/src/apps/cli/commands/project/commandListPods.js +0 -19
  756. package/dist/cli/src/apps/cli/commands/project/commandListPods.js.map +0 -1
  757. package/dist/cli/src/apps/cli/commands/project/commandNamespace.d.ts +0 -3
  758. package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +0 -11
  759. package/dist/cli/src/apps/cli/commands/project/commandNamespace.js.map +0 -1
  760. package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.d.ts +0 -3
  761. package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +0 -20
  762. package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js.map +0 -1
  763. package/dist/cli/src/apps/cli/commands/project/commandOpenGit.d.ts +0 -3
  764. package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +0 -9
  765. package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js.map +0 -1
  766. package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.d.ts +0 -3
  767. package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +0 -14
  768. package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js.map +0 -1
  769. package/dist/cli/src/apps/cli/commands/project/commandPauseProject.d.ts +0 -3
  770. package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +0 -28
  771. package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js.map +0 -1
  772. package/dist/cli/src/apps/cli/commands/project/commandPortForward.d.ts +0 -3
  773. package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +0 -80
  774. package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +0 -1
  775. package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +0 -3
  776. package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +0 -9
  777. package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js.map +0 -1
  778. package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +0 -5
  779. package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +0 -24
  780. package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js.map +0 -1
  781. package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +0 -3
  782. package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +0 -19
  783. package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js.map +0 -1
  784. package/dist/cli/src/apps/cli/commands/project/commandSetup.d.ts +0 -3
  785. package/dist/cli/src/apps/cli/commands/project/commandSetup.js +0 -11
  786. package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +0 -1
  787. package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.d.ts +0 -3
  788. package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +0 -56
  789. package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js.map +0 -1
  790. package/dist/cli/src/apps/cli/commands/project/index.d.ts +0 -3
  791. package/dist/cli/src/apps/cli/commands/project/index.js +0 -50
  792. package/dist/cli/src/apps/cli/commands/project/index.js.map +0 -1
  793. package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.d.ts +0 -2
  794. package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +0 -14
  795. package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js.map +0 -1
  796. package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +0 -3
  797. package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +0 -35
  798. package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js.map +0 -1
  799. package/dist/cli/src/apps/cli/verify/index.d.ts +0 -2
  800. package/dist/cli/src/apps/cli/verify/index.js +0 -15
  801. package/dist/cli/src/apps/cli/verify/index.js.map +0 -1
  802. package/dist/pipeline/src/build/rails/test.js +0 -105
  803. package/dist/pipeline/src/build/rails/test.js.map +0 -1
  804. package/dist/pipeline/src/build/sbom.d.ts +0 -5
  805. package/dist/pipeline/src/build/sbom.js +0 -45
  806. package/dist/pipeline/src/build/sbom.js.map +0 -1
  807. package/dist/pipeline/src/deploy/sbom.d.ts +0 -4
  808. package/dist/pipeline/src/deploy/sbom.js +0 -30
  809. package/dist/pipeline/src/deploy/sbom.js.map +0 -1
  810. package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +0 -5
  811. package/dist/pipeline/src/pipeline/yarn/yarnUtils.js +0 -51
  812. package/dist/pipeline/src/pipeline/yarn/yarnUtils.js.map +0 -1
  813. package/src/apps/cli/cli.ts +0 -43
  814. package/src/apps/cli/commands/cloudSQL/commandRestoreDb.ts +0 -136
  815. package/src/apps/cli/commands/cloudSQL/index.ts +0 -7
  816. package/src/apps/cli/commands/general/index.ts +0 -90
  817. package/src/apps/cli/commands/general/namespaceAutoCompletion.ts +0 -7
  818. package/src/apps/cli/commands/general/portForward.ts +0 -48
  819. package/src/apps/cli/commands/mongodb/index.ts +0 -10
  820. package/src/apps/cli/commands/mongodb/projectMongoDestroyMember.ts +0 -132
  821. package/src/apps/cli/commands/mongodb/projectMongoGetShell.ts +0 -42
  822. package/src/apps/cli/commands/mongodb/projectMongoPortForward.ts +0 -64
  823. package/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.ts +0 -181
  824. package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +0 -194
  825. package/src/apps/cli/commands/project/commandDeletePods.ts +0 -48
  826. package/src/apps/cli/commands/project/commandDeleteProject.ts +0 -33
  827. package/src/apps/cli/commands/project/commandEnvVars.ts +0 -18
  828. package/src/apps/cli/commands/project/commandGetMyTotalWorktime.ts +0 -14
  829. package/src/apps/cli/commands/project/commandGetShell.ts +0 -36
  830. package/src/apps/cli/commands/project/commandGitlabCi.ts +0 -115
  831. package/src/apps/cli/commands/project/commandListPods.ts +0 -20
  832. package/src/apps/cli/commands/project/commandNamespace.ts +0 -14
  833. package/src/apps/cli/commands/project/commandOpenEnv.ts +0 -22
  834. package/src/apps/cli/commands/project/commandOpenGit.ts +0 -12
  835. package/src/apps/cli/commands/project/commandOpenLogs.ts +0 -21
  836. package/src/apps/cli/commands/project/commandPauseProject.ts +0 -33
  837. package/src/apps/cli/commands/project/commandPortForward.ts +0 -91
  838. package/src/apps/cli/commands/project/commandRenewToken.ts +0 -12
  839. package/src/apps/cli/commands/project/commandSecretsClearBackups.ts +0 -26
  840. package/src/apps/cli/commands/project/commandSecurityEvaluate.ts +0 -26
  841. package/src/apps/cli/commands/project/commandSetup.ts +0 -14
  842. package/src/apps/cli/commands/project/commandTriggerCronjob.ts +0 -62
  843. package/src/apps/cli/commands/project/index.ts +0 -56
  844. package/src/apps/cli/commands/project/utils/showProjectBanner.ts +0 -11
  845. package/src/apps/cli/commands/theStuffThatReallyMatters/index.ts +0 -32
  846. package/src/apps/cli/verify/index.ts +0 -14
@@ -1,20 +1,27 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ } : function (o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ });
19
+ var __exportStar = this && this.__exportStar || function (m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
21
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
17
25
  __exportStar(require("./gitConfig"), exports);
18
26
  __exportStar(require("./gitProjectInformation"), exports);
19
- __exportStar(require("./getGetMainBranch"), exports);
20
- //# sourceMappingURL=index.js.map
27
+ __exportStar(require("./getGetMainBranch"), exports);
@@ -1 +1 @@
1
- export type * from "../../pipeline/src/index.js";
1
+ export type * from "../../pipeline/src/index.js";
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -5,4 +5,4 @@ import { CoreV1Api, BatchV1Api, BatchV1beta1Api } from "@kubernetes/client-node"
5
5
  */
6
6
  export declare const getk8sApi: () => CoreV1Api;
7
7
  export declare const getk8sApiBatch: () => BatchV1Api;
8
- export declare const getk8sApiBatchBeta: () => BatchV1beta1Api;
8
+ export declare const getk8sApiBatchBeta: () => BatchV1beta1Api;
@@ -1,29 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.getk8sApiBatchBeta = exports.getk8sApiBatch = exports.getk8sApi = void 0;
4
7
  const client_node_1 = require("@kubernetes/client-node");
5
8
  const getKubeConfig = () => {
6
- const kc = new client_node_1.KubeConfig();
7
- kc.loadFromDefault();
8
- return kc;
9
+ const kc = new client_node_1.KubeConfig();
10
+ kc.loadFromDefault();
11
+ return kc;
9
12
  };
10
13
  /**
11
14
  * get kubernetes client. avoid reusing the instance when context get changed
12
15
  * @returns kuberenetes client
13
16
  */
14
17
  const getk8sApi = () => {
15
- const kc = getKubeConfig();
16
- return kc.makeApiClient(client_node_1.CoreV1Api);
18
+ const kc = getKubeConfig();
19
+ return kc.makeApiClient(client_node_1.CoreV1Api);
17
20
  };
18
21
  exports.getk8sApi = getk8sApi;
19
22
  const getk8sApiBatch = () => {
20
- const kc = getKubeConfig();
21
- return kc.makeApiClient(client_node_1.BatchV1Api);
23
+ const kc = getKubeConfig();
24
+ return kc.makeApiClient(client_node_1.BatchV1Api);
22
25
  };
23
26
  exports.getk8sApiBatch = getk8sApiBatch;
24
27
  const getk8sApiBatchBeta = () => {
25
- const kc = getKubeConfig();
26
- return kc.makeApiClient(client_node_1.BatchV1beta1Api);
28
+ const kc = getKubeConfig();
29
+ return kc.makeApiClient(client_node_1.BatchV1beta1Api);
27
30
  };
28
- exports.getk8sApiBatchBeta = getk8sApiBatchBeta;
29
- //# sourceMappingURL=index.js.map
31
+ exports.getk8sApiBatchBeta = getk8sApiBatchBeta;
@@ -1,3 +1,3 @@
1
1
  export declare const getProjectPods: (envComponent: string) => Promise<import("@kubernetes/client-node").V1Pod[]>;
2
2
  export declare const getProjectPvcs: (envComponent: string) => Promise<import("@kubernetes/client-node").V1PersistentVolumeClaim[]>;
3
- export declare const getProjectPodNames: (envComponent: string) => Promise<string[]>;
3
+ export declare const getProjectPodNames: (envComponent: string) => Promise<string[]>;
@@ -1,27 +1,34 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.getProjectPodNames = exports.getProjectPvcs = exports.getProjectPods = void 0;
4
7
  const parseChoice_1 = require("../config/parseChoice");
5
8
  const k8sApi_1 = require("../k8sApi");
6
9
  const projects_1 = require("../utils/projects");
7
- const getProjectPods = async (envComponent) => {
8
- const namespace = await (0, projects_1.getProjectNamespace)(envComponent);
9
- const k8sApi = (0, k8sApi_1.getk8sApi)();
10
- const res = await k8sApi.listNamespacedPod(namespace);
11
- const { componentName } = (0, parseChoice_1.parseChoice)(envComponent);
12
- return res.body.items.filter((item) => { var _a, _b; return componentName ? (_b = (_a = item.metadata) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.includes(componentName + "-") : true; });
10
+ const getProjectPods = async envComponent => {
11
+ const namespace = await (0, projects_1.getProjectNamespace)(envComponent);
12
+ const k8sApi = (0, k8sApi_1.getk8sApi)();
13
+ const res = await k8sApi.listNamespacedPod(namespace);
14
+ const {
15
+ componentName
16
+ } = (0, parseChoice_1.parseChoice)(envComponent);
17
+ return res.body.items.filter(item => {
18
+ var _a, _b;
19
+ return componentName ? (_b = (_a = item.metadata) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.includes(componentName + "-") : true;
20
+ });
13
21
  };
14
22
  exports.getProjectPods = getProjectPods;
15
- const getProjectPvcs = async (envComponent) => {
16
- const namespace = await (0, projects_1.getProjectNamespace)(envComponent);
17
- const k8sApi = (0, k8sApi_1.getk8sApi)();
18
- const res = await k8sApi.listNamespacedPersistentVolumeClaim(namespace);
19
- return res.body.items;
23
+ const getProjectPvcs = async envComponent => {
24
+ const namespace = await (0, projects_1.getProjectNamespace)(envComponent);
25
+ const k8sApi = (0, k8sApi_1.getk8sApi)();
26
+ const res = await k8sApi.listNamespacedPersistentVolumeClaim(namespace);
27
+ return res.body.items;
20
28
  };
21
29
  exports.getProjectPvcs = getProjectPvcs;
22
- const getProjectPodNames = async (envComponent) => {
23
- const pods = await (0, exports.getProjectPods)(envComponent);
24
- return pods.map((n) => n.metadata.name);
30
+ const getProjectPodNames = async envComponent => {
31
+ const pods = await (0, exports.getProjectPods)(envComponent);
32
+ return pods.map(n => n.metadata.name);
25
33
  };
26
- exports.getProjectPodNames = getProjectPodNames;
27
- //# sourceMappingURL=index.js.map
34
+ exports.getProjectPodNames = getProjectPodNames;
@@ -1,4 +1,4 @@
1
1
  import type { ComponentContext } from "../../../pipeline/src/index.js";
2
- import type { CommandInstance } from "vorpal";
3
- export declare const openGoogleCloudLogs: (instance: CommandInstance, context: ComponentContext) => Promise<void>;
4
- export declare const openGoogleCloudKubernetesDashboard: (instance: CommandInstance, context: ComponentContext) => Promise<void>;
2
+ import type { IO } from "../core/types";
3
+ export declare const openGoogleCloudLogs: (instance: IO, context: ComponentContext) => Promise<void>;
4
+ export declare const openGoogleCloudKubernetesDashboard: (instance: IO, context: ComponentContext) => Promise<void>;
@@ -1,42 +1,44 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.openGoogleCloudKubernetesDashboard = exports.openGoogleCloudLogs = void 0;
4
7
  const pipeline_1 = require("../../../pipeline/src/index.js");
5
8
  const openDashboard_1 = require("../gcloud/openDashboard");
6
9
  const openGoogleCloudLogs = async (instance, context) => {
7
- var _a;
8
- const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
9
- if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
10
- throw new Error("context is not of type kubernetes");
11
- }
12
- if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
13
- throw new Error("no gcloud custer configured");
14
- }
15
- const namespace = context.environment.envVars.KUBE_NAMESPACE;
16
- const cluster = deployConfig.cluster;
17
- const resource = `k8s_container/cluster_name/${cluster.name}${namespace ? `/namespace_name/${namespace}` : ""}`;
18
- await (0, openDashboard_1.openGoogleCloudDashboard)(instance, "logs/viewer", {
19
- project: cluster.projectId,
20
- resource: resource,
21
- });
10
+ var _a;
11
+ const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
12
+ if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
13
+ throw new Error("context is not of type kubernetes");
14
+ }
15
+ if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
16
+ throw new Error("no gcloud custer configured");
17
+ }
18
+ const namespace = context.environment.envVars.KUBE_NAMESPACE;
19
+ const cluster = deployConfig.cluster;
20
+ const resource = `k8s_container/cluster_name/${cluster.name}${namespace ? `/namespace_name/${namespace}` : ""}`;
21
+ await (0, openDashboard_1.openGoogleCloudDashboard)(instance, "logs/viewer", {
22
+ project: cluster.projectId,
23
+ resource: resource
24
+ });
22
25
  };
23
26
  exports.openGoogleCloudLogs = openGoogleCloudLogs;
24
27
  const openGoogleCloudKubernetesDashboard = async (instance, context) => {
25
- var _a;
26
- const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
27
- if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
28
- throw new Error("context is not of type kubernetes");
29
- }
30
- if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
31
- throw new Error("no gcloud custer configured");
32
- }
33
- const namespace = context.environment.envVars.KUBE_NAMESPACE;
34
- const cluster = deployConfig.cluster;
35
- const pageState = `("savedViews":("c":["gke/${cluster.region}/${cluster.name}"],"n":["${namespace}"],"i":"4e42e0b9cd6147f8a4fba7516752ec48"))`;
36
- await (0, openDashboard_1.openGoogleCloudDashboard)(instance, "kubernetes/workload", {
37
- project: cluster.projectId,
38
- pageState: pageState,
39
- });
28
+ var _a;
29
+ const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
30
+ if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
31
+ throw new Error("context is not of type kubernetes");
32
+ }
33
+ if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
34
+ throw new Error("no gcloud custer configured");
35
+ }
36
+ const namespace = context.environment.envVars.KUBE_NAMESPACE;
37
+ const cluster = deployConfig.cluster;
38
+ const pageState = `("savedViews":("c":["gke/${cluster.region}/${cluster.name}"],"n":["${namespace}"],"i":"4e42e0b9cd6147f8a4fba7516752ec48"))`;
39
+ await (0, openDashboard_1.openGoogleCloudDashboard)(instance, "kubernetes/workload", {
40
+ project: cluster.projectId,
41
+ pageState: pageState
42
+ });
40
43
  };
41
- exports.openGoogleCloudKubernetesDashboard = openGoogleCloudKubernetesDashboard;
42
- //# sourceMappingURL=openKubernetesDashboards.js.map
44
+ exports.openGoogleCloudKubernetesDashboard = openGoogleCloudKubernetesDashboard;
@@ -1 +1 @@
1
- {"version":3,"file":"openKubernetesDashboards.js","sourceRoot":"","sources":["../../../../src/kubernetes/openKubernetesDashboards.ts"],"names":[],"mappings":";;;AACA,kDAAqD;AAErD,2DAAmE;AAE5D,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAyB,EACzB,OAAyB,EACzB,EAAE;;IACF,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,MAAM,CAAC;IAC5C,IAAI,CAAC,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC;IAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;IAErC,MAAM,QAAQ,GAAG,8BAA8B,OAAO,CAAC,IAAI,GACzD,SAAS,CAAC,CAAC,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC,CAAC,EAC/C,EAAE,CAAC;IAEH,MAAM,IAAA,wCAAwB,EAAC,QAAQ,EAAE,aAAa,EAAE;QACtD,OAAO,EAAE,OAAO,CAAC,SAAS;QAC1B,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,mBAAmB,uBAwB9B;AAEK,MAAM,kCAAkC,GAAG,KAAK,EACrD,QAAyB,EACzB,OAAyB,EACzB,EAAE;;IACF,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,MAAM,CAAC;IAC5C,IAAI,CAAC,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC;IAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;IACrC,MAAM,SAAS,GAAG,4BAA4B,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,YAAY,SAAS,6CAA6C,CAAC;IAE/I,MAAM,IAAA,wCAAwB,EAAC,QAAQ,EAAE,qBAAqB,EAAE;QAC9D,OAAO,EAAE,OAAO,CAAC,SAAS;QAC1B,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,kCAAkC,sCAoB7C"}
1
+ {"version":3,"file":"openKubernetesDashboards.js","sourceRoot":"","sources":["../../../../src/kubernetes/openKubernetesDashboards.ts"],"names":[],"mappings":";;;AACA,kDAAqD;AAErD,2DAAmE;AAE5D,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAY,EACZ,OAAyB,EACzB,EAAE;;IACF,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,MAAM,CAAC;IAC5C,IAAI,CAAC,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC;IAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;IAErC,MAAM,QAAQ,GAAG,8BAA8B,OAAO,CAAC,IAAI,GACzD,SAAS,CAAC,CAAC,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC,CAAC,EAC/C,EAAE,CAAC;IAEH,MAAM,IAAA,wCAAwB,EAAC,QAAQ,EAAE,aAAa,EAAE;QACtD,OAAO,EAAE,OAAO,CAAC,SAAS;QAC1B,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,mBAAmB,uBAwB9B;AAEK,MAAM,kCAAkC,GAAG,KAAK,EACrD,QAAY,EACZ,OAAyB,EACzB,EAAE;;IACF,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,MAAM,0CAAE,MAAM,CAAC;IAC5C,IAAI,CAAC,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IACD,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC;IAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;IACrC,MAAM,SAAS,GAAG,4BAA4B,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,YAAY,SAAS,6CAA6C,CAAC;IAE/I,MAAM,IAAA,wCAAwB,EAAC,QAAQ,EAAE,qBAAqB,EAAE;QAC9D,OAAO,EAAE,OAAO,CAAC,SAAS;QAC1B,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,kCAAkC,sCAoB7C"}
@@ -1 +1 @@
1
- export declare const startKubePortForward: (podname: string, localPort: number, remotePort: number, namespace: string) => Promise<void>;
1
+ export declare const startKubePortForward: (podname: string, localPort: number, remotePort: number, namespace: string) => Promise<void>;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.startKubePortForward = void 0;
4
7
  const portForwards_1 = require("../utils/portForwards");
5
8
  const startKubePortForward = async (podname, localPort, remotePort, namespace) => {
6
- const name = `kube/${namespace}/${podname}/${localPort}:${remotePort}`;
7
- await (0, portForwards_1.startPortForwardCommand)(name, `kubectl port-forward ${podname} ${localPort}:${remotePort} -n ${namespace}`);
9
+ const name = `kube/${namespace}/${podname}/${localPort}:${remotePort}`;
10
+ await (0, portForwards_1.startPortForwardCommand)(name, `kubectl port-forward ${podname} ${localPort}:${remotePort} -n ${namespace}`);
8
11
  };
9
- exports.startKubePortForward = startKubePortForward;
10
- //# sourceMappingURL=portForward.js.map
12
+ exports.startKubePortForward = startKubePortForward;
@@ -1,2 +1,2 @@
1
1
  declare const ownPkg: any;
2
- export default ownPkg;
2
+ export default ownPkg;
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
+
2
3
  // we can't import the package.json directly, because the bundling process will inline it
3
4
  // but the version is only set during deployement, when its already bundled
4
5
  // instead we need to use require.main.path to get the path of the main module, which is actually the file in the bin
5
6
  // this will point to the root package.json
6
7
  var _a;
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
8
11
  const path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
9
12
  const ownPkg = require(path);
10
- exports.default = ownPkg;
11
- //# sourceMappingURL=packageInfos.js.map
13
+ exports.default = ownPkg;
@@ -1,18 +1,18 @@
1
1
  export type KubernetesSecretName = string;
2
2
  export interface ISecrets {
3
- [key: string]: KubernetesSecretName;
3
+ [key: string]: KubernetesSecretName;
4
4
  }
5
5
  export interface IValueFile {
6
- env?: {
7
- public?: {
8
- [key: string]: string;
9
- };
10
- secret?: ISecrets;
6
+ env?: {
7
+ public?: {
8
+ [key: string]: string;
11
9
  };
12
- cloudsql?: {
13
- enabled: boolean;
14
- instanceId?: string;
15
- region?: string;
16
- projectId?: string;
17
- };
18
- }
10
+ secret?: ISecrets;
11
+ };
12
+ cloudsql?: {
13
+ enabled: boolean;
14
+ instanceId?: string;
15
+ region?: string;
16
+ projectId?: string;
17
+ };
18
+ }
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1 @@
1
- export declare const boxWithAsci: (str: string) => string;
1
+ export declare const boxWithAsci: (str: string) => string;
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.boxWithAsci = void 0;
4
7
  // thx copilot
5
- const boxWithAsci = (str) => {
6
- const length = str.length;
7
- const box = "╔" + "═".repeat(length + 3) + "╗";
8
- const empty = "║ " + " ".repeat(length + 1) + " ║";
9
- const text = "║ " + str + " ║";
10
- const bottom = "╚" + "═".repeat(length + 3) + "╝";
11
- return [box, empty, text, empty, bottom].join("\n");
8
+ const boxWithAsci = str => {
9
+ const length = str.length;
10
+ const box = "╔" + "═".repeat(length + 3) + "╗";
11
+ const empty = "║ " + " ".repeat(length + 1) + " ║";
12
+ const text = "║ " + str + " ║";
13
+ const bottom = "╚" + "═".repeat(length + 3) + "╝";
14
+ return [box, empty, text, empty, bottom].join("\n");
12
15
  };
13
- exports.boxWithAsci = boxWithAsci;
14
- //# sourceMappingURL=boxWithAscii.js.map
16
+ exports.boxWithAsci = boxWithAsci;
@@ -1,3 +1,3 @@
1
1
  export declare const getCurrentContext: () => Promise<string>;
2
2
  export declare const getCurrentConnectedClusterName: () => Promise<string>;
3
- export declare const connectToCluster: (fullname: string) => Promise<void>;
3
+ export declare const connectToCluster: (fullname: string) => Promise<void>;
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.connectToCluster = exports.getCurrentConnectedClusterName = exports.getCurrentContext = void 0;
4
7
  const child_process_promise_1 = require("child-process-promise");
5
8
  const getCurrentContext = async () => (await (0, child_process_promise_1.exec)(`kubectl config current-context`)).stdout.trim();
6
9
  exports.getCurrentContext = getCurrentContext;
7
10
  const getCurrentConnectedClusterName = async () => {
8
- return await (0, exports.getCurrentContext)();
11
+ return await (0, exports.getCurrentContext)();
9
12
  };
10
13
  exports.getCurrentConnectedClusterName = getCurrentConnectedClusterName;
11
- const connectToCluster = async (fullname) => {
12
- await (0, child_process_promise_1.exec)(`kubectl config use-context ${fullname}`);
14
+ const connectToCluster = async fullname => {
15
+ await (0, child_process_promise_1.exec)(`kubectl config use-context ${fullname}`);
13
16
  };
14
- exports.connectToCluster = connectToCluster;
15
- //# sourceMappingURL=cluster.js.map
17
+ exports.connectToCluster = connectToCluster;
@@ -1 +1 @@
1
- export declare const editAsFile: <T>(inObject: T, preamble?: string) => Promise<T>;
1
+ export declare const editAsFile: <T>(inObject: T, preamble?: string) => Promise<T>;
@@ -1,29 +1,37 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
6
+ };
4
7
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
6
11
  exports.editAsFile = void 0;
7
12
  const tmp_promise_1 = require("tmp-promise");
8
13
  const yaml_1 = require("yaml");
9
14
  const fs_extra_1 = require("fs-extra");
10
15
  const getEditor_1 = __importDefault(require("./getEditor"));
11
16
  const editAsFile = async (inObject, preamble) => {
12
- const fullPreamble = preamble
13
- ? `#
17
+ const fullPreamble = preamble ? `#
14
18
  # ${preamble.split("\n").join("\n# ")}
15
19
  #
16
20
 
17
- `
18
- : "\n";
19
- const asString = fullPreamble + (0, yaml_1.stringify)(inObject, { aliasDuplicateObjects: false });
20
- let newContent;
21
- await (0, tmp_promise_1.withFile)(async ({ path: tmpFilePath }) => {
22
- await (0, fs_extra_1.writeFile)(tmpFilePath, asString);
23
- await (await (0, getEditor_1.default)()).open(tmpFilePath);
24
- newContent = (0, yaml_1.parse)((await (0, fs_extra_1.readFile)(tmpFilePath)).toString("utf-8"));
25
- }, { postfix: ".yml" });
26
- return newContent;
21
+ ` : "\n";
22
+ const asString = fullPreamble + (0, yaml_1.stringify)(inObject, {
23
+ aliasDuplicateObjects: false
24
+ });
25
+ let newContent;
26
+ await (0, tmp_promise_1.withFile)(async ({
27
+ path: tmpFilePath
28
+ }) => {
29
+ await (0, fs_extra_1.writeFile)(tmpFilePath, asString);
30
+ await (await (0, getEditor_1.default)()).open(tmpFilePath);
31
+ newContent = (0, yaml_1.parse)((await (0, fs_extra_1.readFile)(tmpFilePath)).toString("utf-8"));
32
+ }, {
33
+ postfix: ".yml"
34
+ });
35
+ return newContent;
27
36
  };
28
- exports.editAsFile = editAsFile;
29
- //# sourceMappingURL=editAsFile.js.map
37
+ exports.editAsFile = editAsFile;
@@ -1 +1 @@
1
- export declare const readFileOrError: (filePath: string) => Promise<any[]>;
1
+ export declare const readFileOrError: (filePath: string) => Promise<any[]>;
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.readFileOrError = void 0;
4
7
  const fs_extra_1 = require("fs-extra");
5
- const readFile = (file) => (0, fs_extra_1.readFile)(file, { encoding: "utf-8" });
6
- const readFileOrError = async (filePath) => {
7
- try {
8
- const file = await readFile(filePath);
9
- return [null, file];
10
- }
11
- catch (e) {
12
- return [e];
13
- }
8
+ const readFile = file => (0, fs_extra_1.readFile)(file, {
9
+ encoding: "utf-8"
10
+ });
11
+ const readFileOrError = async filePath => {
12
+ try {
13
+ const file = await readFile(filePath);
14
+ return [null, file];
15
+ } catch (e) {
16
+ return [e];
17
+ }
14
18
  };
15
- exports.readFileOrError = readFileOrError;
16
- //# sourceMappingURL=files.js.map
19
+ exports.readFileOrError = readFileOrError;
@@ -1,4 +1,4 @@
1
1
  declare const _default: () => Promise<{
2
- open: (path: string) => Promise<void>;
2
+ open: (path: string) => Promise<void>;
3
3
  }>;
4
- export default _default;
4
+ export default _default;
@@ -1,21 +1,27 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
6
+ };
4
7
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
6
11
  const child_process_promise_1 = require("child-process-promise");
7
12
  const command_exists_promise_1 = __importDefault(require("command-exists-promise"));
8
13
  let cmd;
9
14
  exports.default = async () => {
10
- var _a, _b;
11
- if (!cmd) {
12
- cmd =
13
- (_b = (_a = process.env.VISUAL) !== null && _a !== void 0 ? _a : process.env.EDITOR) !== null && _b !== void 0 ? _b : ((await (0, command_exists_promise_1.default)("code")) ? "code --wait" : "vim");
15
+ var _a, _b;
16
+ if (!cmd) {
17
+ cmd = (_b = (_a = process.env.VISUAL) !== null && _a !== void 0 ? _a : process.env.EDITOR) !== null && _b !== void 0 ? _b : (await (0, command_exists_promise_1.default)("code")) ? "code --wait" : "vim";
18
+ }
19
+ return {
20
+ open: async path => {
21
+ await (0, child_process_promise_1.spawn)(`${cmd} ${path}`, {
22
+ shell: true,
23
+ stdio: "inherit"
24
+ });
14
25
  }
15
- return {
16
- open: async (path) => {
17
- await (0, child_process_promise_1.spawn)(`${cmd} ${path}`, { shell: true, stdio: "inherit" });
18
- },
19
- };
20
- };
21
- //# sourceMappingURL=getEditor.js.map
26
+ };
27
+ };
@@ -1,24 +1,24 @@
1
1
  import memoizee from "memoizee";
2
- import type { CommandInstance } from "vorpal";
2
+ import type { IO } from "../core/types";
3
3
  export declare const hasGitlabToken: () => Promise<boolean>;
4
- export declare const setupGitlabToken: (vorpal: CommandInstance) => Promise<void>;
5
- export declare const getGitlabToken: (vorpal: CommandInstance | null) => Promise<string>;
4
+ export declare const setupGitlabToken: (io: IO) => Promise<void>;
5
+ export declare const getGitlabToken: (io: IO | null) => Promise<string>;
6
6
  type Method = "GET" | "PUT" | "POST" | "DELETE";
7
- export declare const doGitlabRequest: <T = any>(vorpal: CommandInstance | null, path: string, data?: any, method?: Method) => Promise<T>;
8
- export declare const getProjectInfo: (vorpal: CommandInstance | null) => Promise<{
9
- id: string;
10
- web_url: string;
7
+ export declare const doGitlabRequest: <T = any>(io: IO | null, path: string, data?: any, method?: Method) => Promise<T>;
8
+ export declare const getProjectInfo: (io: IO | null) => Promise<{
9
+ id: string;
10
+ web_url: string;
11
11
  }>;
12
12
  type GitlabVariable = {
13
- variable_type: string;
14
- key: string;
15
- value: string;
16
- protected: boolean;
17
- masked: boolean;
18
- environment_scope: string;
13
+ variable_type: string;
14
+ key: string;
15
+ value: string;
16
+ protected: boolean;
17
+ masked: boolean;
18
+ environment_scope: string;
19
19
  };
20
- export declare const getAllVariables: ((vorpal: CommandInstance | null, n?: any) => Promise<Array<GitlabVariable>>) & memoizee.Memoized<(vorpal: CommandInstance | null, n?: any) => Promise<Array<GitlabVariable>>>;
21
- export declare const getVariableValueByRawName: (vorpal: CommandInstance, rawName: string) => Promise<string>;
22
- export declare const clearBackups: (vorpal: CommandInstance, keep: number) => Promise<void>;
23
- export declare const upsertAllVariables: (vorpal: CommandInstance, variables: Record<string, any>, env: string, componentName: string, backup?: boolean, masked?: boolean) => Promise<void>;
24
- export {};
20
+ export declare const getAllVariables: ((io: IO | null, n?: any) => Promise<Array<GitlabVariable>>) & memoizee.Memoized<(io: IO | null, n?: any) => Promise<Array<GitlabVariable>>>;
21
+ export declare const getVariableValueByRawName: (io: IO, rawName: string) => Promise<string>;
22
+ export declare const clearBackups: (io: IO, keep: number) => Promise<void>;
23
+ export declare const upsertAllVariables: (io: IO, variables: Record<string, any>, env: string, componentName: string, backup?: boolean, masked?: boolean) => Promise<void>;
24
+ export {};