@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.
- package/README.md +23 -5
- package/babel-inline.json +11 -0
- package/dist/bundles/catci/index.js +2258 -2364
- package/dist/bundles/catenv/index.js +6528 -6469
- package/dist/bundles/cli/index.js +136142 -160208
- package/dist/cli/src/adapters/baseContext.d.ts +22 -0
- package/dist/cli/src/adapters/baseContext.js +31 -0
- package/dist/cli/src/adapters/baseContext.js.map +1 -0
- package/dist/cli/src/adapters/programmatic.d.ts +26 -0
- package/dist/cli/src/adapters/programmatic.js +67 -0
- package/dist/cli/src/adapters/programmatic.js.map +1 -0
- package/dist/cli/src/adapters/terminal.d.ts +28 -0
- package/dist/cli/src/adapters/terminal.js +201 -0
- package/dist/cli/src/adapters/terminal.js.map +1 -0
- package/dist/cli/src/apps/catci/catci.d.ts +1 -1
- package/dist/cli/src/apps/catci/catci.js +23 -20
- package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +16 -16
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +54 -65
- package/dist/cli/src/apps/catci/commands/security/commands.d.ts +1 -1
- package/dist/cli/src/apps/catci/commands/security/commands.js +91 -83
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +11 -6
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +43 -43
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -3
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +16 -12
- package/dist/cli/src/apps/catenv/catenv.d.ts +5 -2
- package/dist/cli/src/apps/catenv/catenv.js +17 -16
- package/dist/cli/src/apps/catenv/catenv.js.map +1 -1
- package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +42 -39
- package/dist/cli/src/apps/catenv/types.d.ts +3 -3
- package/dist/cli/src/apps/catenv/types.js +4 -2
- package/dist/cli/src/apps/catenv/utils.d.ts +9 -6
- package/dist/cli/src/apps/catenv/utils.js +25 -21
- package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -0
- package/dist/cli/src/apps/catenv/verboseBanner.js +26 -0
- package/dist/cli/src/apps/catenv/verboseBanner.js.map +1 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +25 -22
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +31 -32
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +56 -52
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +2 -5
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +97 -127
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +25 -29
- package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +40 -31
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +137 -133
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +42 -47
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +70 -69
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +15 -7
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +21 -16
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +9 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +35 -28
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +35 -30
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +2 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +17 -15
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js.map +1 -1
- package/dist/cli/src/catci.d.ts +1 -1
- package/dist/cli/src/catci.js +5 -3
- package/dist/cli/src/catenv.d.ts +1 -1
- package/dist/cli/src/catenv.js +21 -12
- package/dist/cli/src/catenv.js.map +1 -1
- package/dist/cli/src/cli.d.ts +1 -1
- package/dist/cli/src/cli.js +181 -6
- package/dist/cli/src/cli.js.map +1 -1
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.d.ts +46 -0
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js +111 -0
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js.map +1 -0
- package/dist/cli/src/commands/fun/commandDadjoke.d.ts +1 -0
- package/dist/cli/src/commands/fun/commandDadjoke.js +30 -0
- package/dist/cli/src/commands/fun/commandDadjoke.js.map +1 -0
- package/dist/cli/src/commands/fun/commandStarwars.d.ts +1 -0
- package/dist/cli/src/commands/fun/commandStarwars.js +19 -0
- package/dist/cli/src/commands/fun/commandStarwars.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeCurrentContext.d.ts +1 -0
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js +17 -0
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeGetShell.d.ts +12 -0
- package/dist/cli/src/commands/general/commandKubeGetShell.js +36 -0
- package/dist/cli/src/commands/general/commandKubeGetShell.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeListNamespaces.d.ts +1 -0
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js +20 -0
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeListPods.d.ts +7 -0
- package/dist/cli/src/commands/general/commandKubeListPods.js +26 -0
- package/dist/cli/src/commands/general/commandKubeListPods.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeListSecrets.d.ts +7 -0
- package/dist/cli/src/commands/general/commandKubeListSecrets.js +26 -0
- package/dist/cli/src/commands/general/commandKubeListSecrets.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubePortForward.d.ts +20 -0
- package/dist/cli/src/commands/general/commandKubePortForward.js +46 -0
- package/dist/cli/src/commands/general/commandKubePortForward.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeStopPortforward.d.ts +7 -0
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js +24 -0
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js.map +1 -0
- package/dist/cli/src/commands/index.d.ts +34 -0
- package/dist/cli/src/commands/index.js +261 -0
- package/dist/cli/src/commands/index.js.map +1 -0
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.d.ts +16 -0
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js +89 -0
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js.map +1 -0
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.d.ts +16 -0
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js +36 -0
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js.map +1 -0
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.d.ts +21 -0
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js +65 -0
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js.map +1 -0
- package/dist/cli/src/commands/project/commandCloudSqlProxy.d.ts +13 -0
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js +127 -0
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js.map +1 -0
- package/dist/cli/src/commands/project/commandConfigSecrets.d.ts +8 -0
- package/dist/cli/src/commands/project/commandConfigSecrets.js +35 -0
- package/dist/cli/src/commands/project/commandConfigSecrets.js.map +1 -0
- package/dist/cli/src/commands/project/commandDeletePods.d.ts +13 -0
- package/dist/cli/src/commands/project/commandDeletePods.js +49 -0
- package/dist/cli/src/commands/project/commandDeletePods.js.map +1 -0
- package/dist/cli/src/commands/project/commandDeleteProject.d.ts +8 -0
- package/dist/cli/src/commands/project/commandDeleteProject.js +41 -0
- package/dist/cli/src/commands/project/commandDeleteProject.js.map +1 -0
- package/dist/cli/src/commands/project/commandEnvVars.d.ts +8 -0
- package/dist/cli/src/commands/project/commandEnvVars.js +32 -0
- package/dist/cli/src/commands/project/commandEnvVars.js.map +1 -0
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.d.ts +1 -0
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js +19 -0
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js.map +1 -0
- package/dist/cli/src/commands/project/commandGetShell.d.ts +13 -0
- package/dist/cli/src/commands/project/commandGetShell.js +41 -0
- package/dist/cli/src/commands/project/commandGetShell.js.map +1 -0
- package/dist/cli/src/commands/project/commandGitlabCi.d.ts +14 -0
- package/dist/cli/src/commands/project/commandGitlabCi.js +109 -0
- package/dist/cli/src/commands/project/commandGitlabCi.js.map +1 -0
- package/dist/cli/src/commands/project/commandListPods.d.ts +8 -0
- package/dist/cli/src/commands/project/commandListPods.js +31 -0
- package/dist/cli/src/commands/project/commandListPods.js.map +1 -0
- package/dist/cli/src/commands/project/commandNamespace.d.ts +8 -0
- package/dist/cli/src/commands/project/commandNamespace.js +26 -0
- package/dist/cli/src/commands/project/commandNamespace.js.map +1 -0
- package/dist/cli/src/commands/project/commandOpenEnv.d.ts +8 -0
- package/dist/cli/src/commands/project/commandOpenEnv.js +40 -0
- package/dist/cli/src/commands/project/commandOpenEnv.js.map +1 -0
- package/dist/cli/src/commands/project/commandOpenGit.d.ts +1 -0
- package/dist/cli/src/commands/project/commandOpenGit.js +17 -0
- package/dist/cli/src/commands/project/commandOpenGit.js.map +1 -0
- package/dist/cli/src/commands/project/commandOpenLogs.d.ts +8 -0
- package/dist/cli/src/commands/project/commandOpenLogs.js +32 -0
- package/dist/cli/src/commands/project/commandOpenLogs.js.map +1 -0
- package/dist/cli/src/commands/project/commandPauseProject.d.ts +8 -0
- package/dist/cli/src/commands/project/commandPauseProject.js +41 -0
- package/dist/cli/src/commands/project/commandPauseProject.js.map +1 -0
- package/dist/cli/src/commands/project/commandPortForward.d.ts +25 -0
- package/dist/cli/src/commands/project/commandPortForward.js +95 -0
- package/dist/cli/src/commands/project/commandPortForward.js.map +1 -0
- package/dist/cli/src/commands/project/commandProjectRestoreDb.d.ts +19 -0
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js +159 -0
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js.map +1 -0
- package/dist/cli/src/commands/project/commandRenewToken.d.ts +1 -0
- package/dist/cli/src/commands/project/commandRenewToken.js +17 -0
- package/dist/cli/src/commands/project/commandRenewToken.js.map +1 -0
- package/dist/cli/src/commands/project/commandSecretsClearBackups.d.ts +7 -0
- package/dist/cli/src/commands/project/commandSecretsClearBackups.js +24 -0
- package/dist/cli/src/commands/project/commandSecretsClearBackups.js.map +1 -0
- package/dist/cli/src/commands/project/commandSecurityEvaluate.d.ts +1 -0
- package/dist/cli/src/commands/project/commandSecurityEvaluate.js +26 -0
- package/dist/cli/src/commands/project/commandSecurityEvaluate.js.map +1 -0
- package/dist/cli/src/commands/project/commandSetup.d.ts +7 -0
- package/dist/cli/src/commands/project/commandSetup.js +24 -0
- package/dist/cli/src/commands/project/commandSetup.js.map +1 -0
- package/dist/cli/src/commands/project/commandTriggerCronjob.d.ts +25 -0
- package/dist/cli/src/commands/project/commandTriggerCronjob.js +95 -0
- package/dist/cli/src/commands/project/commandTriggerCronjob.js.map +1 -0
- package/dist/cli/src/completion.d.ts +23 -0
- package/dist/cli/src/completion.js +173 -0
- package/dist/cli/src/completion.js.map +1 -0
- package/dist/cli/src/config/getProjectConfig.d.ts +12 -8
- package/dist/cli/src/config/getProjectConfig.js +97 -95
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/cli/src/config/parseChoice.d.ts +3 -3
- package/dist/cli/src/config/parseChoice.js +11 -6
- package/dist/cli/src/core/defineCommand.d.ts +27 -0
- package/dist/cli/src/core/defineCommand.js +35 -0
- package/dist/cli/src/core/defineCommand.js.map +1 -0
- package/dist/cli/src/core/index.d.ts +5 -0
- package/dist/cli/src/core/index.js +52 -0
- package/dist/cli/src/core/index.js.map +1 -0
- package/dist/cli/src/core/registry.d.ts +5 -0
- package/dist/cli/src/core/registry.js +26 -0
- package/dist/cli/src/core/registry.js.map +1 -0
- package/dist/cli/src/core/runner.d.ts +19 -0
- package/dist/cli/src/core/runner.js +29 -0
- package/dist/cli/src/core/runner.js.map +1 -0
- package/dist/cli/src/core/types.d.ts +100 -0
- package/dist/cli/src/core/types.js +17 -0
- package/dist/cli/src/core/types.js.map +1 -0
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
- package/dist/cli/src/gcloud/artifactsRegistry.js +12 -11
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +23 -22
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +2 -2
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +19 -12
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -1
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +30 -16
- package/dist/cli/src/gcloud/cloudSql/copyDb.js.map +1 -1
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +9 -0
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +24 -0
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js.map +1 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +55 -39
- package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
- package/dist/cli/src/gcloud/enableServices.js +8 -6
- package/dist/cli/src/gcloud/openDashboard.d.ts +2 -2
- package/dist/cli/src/gcloud/openDashboard.js +17 -13
- package/dist/cli/src/gcloud/openDashboard.js.map +1 -1
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +8 -8
- package/dist/cli/src/gcloud/serviceAccounts.js +64 -58
- package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -1
- package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
- package/dist/cli/src/git/getGetMainBranch.js +9 -5
- package/dist/cli/src/git/gitConfig.d.ts +11 -6
- package/dist/cli/src/git/gitConfig.js +17 -11
- package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
- package/dist/cli/src/git/gitProjectInformation.js +30 -20
- package/dist/cli/src/git/index.d.ts +1 -1
- package/dist/cli/src/git/index.js +23 -16
- package/dist/cli/src/index.d.ts +1 -1
- package/dist/cli/src/index.js +4 -2
- package/dist/cli/src/k8sApi/index.d.ts +1 -1
- package/dist/cli/src/k8sApi/index.js +14 -12
- package/dist/cli/src/kubernetes/index.d.ts +1 -1
- package/dist/cli/src/kubernetes/index.js +24 -17
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +3 -3
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +35 -33
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -1
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
- package/dist/cli/src/kubernetes/portForward.js +7 -5
- package/dist/cli/src/packageInfos.d.ts +1 -1
- package/dist/cli/src/packageInfos.js +5 -3
- package/dist/cli/src/types/types.d.ts +13 -13
- package/dist/cli/src/types/types.js +4 -2
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +12 -10
- package/dist/cli/src/utils/cluster.d.ts +1 -1
- package/dist/cli/src/utils/cluster.js +8 -6
- package/dist/cli/src/utils/editAsFile.d.ts +1 -1
- package/dist/cli/src/utils/editAsFile.js +25 -17
- package/dist/cli/src/utils/files.d.ts +1 -1
- package/dist/cli/src/utils/files.js +15 -12
- package/dist/cli/src/utils/getEditor.d.ts +2 -2
- package/dist/cli/src/utils/getEditor.js +20 -14
- package/dist/cli/src/utils/gitlab.d.ts +18 -18
- package/dist/cli/src/utils/gitlab.js +187 -174
- package/dist/cli/src/utils/gitlab.js.map +1 -1
- package/dist/cli/src/utils/log.d.ts +4 -4
- package/dist/cli/src/utils/log.js +18 -16
- package/dist/cli/src/utils/portForwards.d.ts +5 -5
- package/dist/cli/src/utils/portForwards.js +32 -31
- package/dist/cli/src/utils/preferences.d.ts +1 -1
- package/dist/cli/src/utils/preferences.js +43 -36
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +24 -21
- package/dist/cli/src/utils/promise.d.ts +1 -1
- package/dist/cli/src/utils/promise.js +8 -6
- package/dist/cli/src/utils/shell.d.ts +1 -1
- package/dist/cli/src/utils/shell.js +20 -19
- package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
- package/dist/pipeline/src/bash/BashExpression.js +44 -45
- package/dist/pipeline/src/bash/bashEscape.d.ts +6 -4
- package/dist/pipeline/src/bash/bashEscape.js +63 -73
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +3 -5
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +7 -6
- package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +41 -46
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +11 -14
- package/dist/pipeline/src/bash/index.d.ts +1 -1
- package/dist/pipeline/src/bash/index.js +23 -16
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +46 -41
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -1
- package/dist/pipeline/src/build/base/constants.d.ts +4 -4
- package/dist/pipeline/src/build/base/constants.js +8 -6
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +7 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.js +37 -43
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +16 -25
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +16 -22
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js.map +1 -1
- package/dist/pipeline/src/build/base/index.d.ts +4 -4
- package/dist/pipeline/src/build/base/index.js +15 -37
- package/dist/pipeline/src/build/base/index.js.map +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.js +19 -21
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.js +47 -49
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +16 -23
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +14 -12
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +16 -16
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +7 -5
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js +67 -59
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
- package/dist/pipeline/src/build/docker.d.ts +50 -46
- package/dist/pipeline/src/build/docker.js +112 -123
- package/dist/pipeline/src/build/docker.js.map +1 -1
- package/dist/pipeline/src/build/index.d.ts +13 -17
- package/dist/pipeline/src/build/index.js +80 -72
- package/dist/pipeline/src/build/index.js.map +1 -1
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +34 -37
- package/dist/pipeline/src/build/node/cache.d.ts +1 -1
- package/dist/pipeline/src/build/node/cache.js +34 -44
- package/dist/pipeline/src/build/node/cache.js.map +1 -1
- package/dist/pipeline/src/build/node/constants.d.ts +4 -4
- package/dist/pipeline/src/build/node/constants.js +8 -6
- package/dist/pipeline/src/build/node/index.d.ts +1 -1
- package/dist/pipeline/src/build/node/index.js +11 -9
- package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
- package/dist/pipeline/src/build/node/meteor.js +52 -45
- package/dist/pipeline/src/build/node/meteor.js.map +1 -1
- package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/testJob.js +71 -81
- package/dist/pipeline/src/build/node/testJob.js.map +1 -1
- package/dist/pipeline/src/build/node/yarn.d.ts +3 -2
- package/dist/pipeline/src/build/node/yarn.js +33 -39
- package/dist/pipeline/src/build/node/yarn.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +37 -43
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +8 -6
- package/dist/pipeline/src/build/rails/index.js.map +1 -1
- package/dist/pipeline/src/build/rails/{test.d.ts → testJob.d.ts} +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +76 -0
- package/dist/pipeline/src/build/rails/testJob.js.map +1 -0
- package/dist/pipeline/src/build/types.d.ts +294 -265
- package/dist/pipeline/src/build/types.js +10 -10
- package/dist/pipeline/src/build/types.js.map +1 -1
- package/dist/pipeline/src/catenv/index.d.ts +3 -3
- package/dist/pipeline/src/catenv/index.js +10 -8
- package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +18 -23
- package/dist/pipeline/src/config/index.d.ts +1 -1
- package/dist/pipeline/src/config/index.js +23 -16
- package/dist/pipeline/src/config/readConfig.d.ts +4 -4
- package/dist/pipeline/src/config/readConfig.js +45 -24
- package/dist/pipeline/src/config/readConfig.js.map +1 -1
- package/dist/pipeline/src/constants.d.ts +1 -1
- package/dist/pipeline/src/constants.js +6 -5
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -4
- package/dist/pipeline/src/context/createAllComponentsContext.js +22 -16
- package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
- package/dist/pipeline/src/context/createComponentContext.js +87 -96
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +15 -8
- package/dist/pipeline/src/context/createWorkspaceContext.js +37 -28
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
- package/dist/pipeline/src/context/getBuildInfoVariables.js +22 -21
- package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +29 -28
- package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvType.js +10 -9
- package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +20 -16
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +6 -1
- package/dist/pipeline/src/context/getEnvironmentContext.js +35 -28
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +11 -11
- package/dist/pipeline/src/context/getEnvironmentVariables.js +102 -95
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -1
- package/dist/pipeline/src/context/getLabels.d.ts +7 -7
- package/dist/pipeline/src/context/getLabels.js +26 -25
- package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +12 -10
- package/dist/pipeline/src/context/index.d.ts +1 -1
- package/dist/pipeline/src/context/index.js +23 -16
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
- package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
- package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
- package/dist/pipeline/src/context/utils/envVars.js +12 -12
- package/dist/pipeline/src/defaults/index.d.ts +1 -1
- package/dist/pipeline/src/defaults/index.js +6 -5
- package/dist/pipeline/src/defaults/index.js.map +1 -1
- package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/deploy.js +75 -101
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
- package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/index.js +6 -10
- package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/rollback.js +30 -26
- package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/stop.js +30 -31
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -1
- package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/variables.js +8 -6
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +55 -67
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +16 -17
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +44 -41
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +58 -63
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +63 -72
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +52 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +33 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +54 -61
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +115 -118
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +11 -31
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +10 -22
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +36 -39
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +36 -37
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +19 -13
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +72 -76
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +9 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +13 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +13 -17
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +46 -79
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +7 -9
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -4
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +6 -4
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +7 -9
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +30 -39
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/index.js +9 -7
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +18 -22
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.js +9 -7
- package/dist/pipeline/src/deploy/index.d.ts +6 -8
- package/dist/pipeline/src/deploy/index.js +27 -20
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +5 -3
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +25 -19
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +36 -35
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +46 -67
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +54 -45
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +35 -34
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +70 -63
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -24
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +88 -89
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -1
- package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
- package/dist/pipeline/src/deploy/types/base.js +4 -2
- package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
- package/dist/pipeline/src/deploy/types/custom.js +4 -2
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
- package/dist/pipeline/src/deploy/types/dockerTag.js +4 -2
- package/dist/pipeline/src/deploy/types/executeBase.d.ts +24 -0
- package/dist/pipeline/src/deploy/types/executeBase.js +5 -0
- package/dist/pipeline/src/deploy/types/executeBase.js.map +1 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +442 -389
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -14
- package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -1
- package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
- package/dist/pipeline/src/deploy/types/index.js +27 -21
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
- package/dist/pipeline/src/deploy/types/kubernetes.js +4 -2
- package/dist/pipeline/src/deploy/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/utils.js +23 -21
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
- package/dist/pipeline/src/globalScriptFunctions/index.js +21 -19
- package/dist/pipeline/src/index.d.ts +2 -1
- package/dist/pipeline/src/index.js +24 -16
- package/dist/pipeline/src/index.js.map +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
- package/dist/pipeline/src/pipeline/agent/createAgentContext.js +41 -37
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +30 -31
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +36 -43
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js.map +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +7 -5
- package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/prompts.js +32 -14
- package/dist/pipeline/src/pipeline/agent/shared.d.ts +6 -4
- package/dist/pipeline/src/pipeline/agent/shared.js +26 -25
- package/dist/pipeline/src/pipeline/agent/shared.js.map +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.js +11 -9
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +17 -13
- package/dist/pipeline/src/pipeline/createAllJobs.js +56 -44
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +28 -27
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +8 -6
- package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createMainPipeline.js +85 -78
- package/dist/pipeline/src/pipeline/createMainPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +78 -58
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +1 -1
- package/dist/pipeline/src/pipeline/getPipelineStages.js +8 -10
- package/dist/pipeline/src/pipeline/gitlab/cache.d.ts +9 -0
- package/dist/pipeline/src/pipeline/gitlab/cache.js +38 -0
- package/dist/pipeline/src/pipeline/gitlab/cache.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +229 -241
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +7 -2
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +64 -59
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +34 -32
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +38 -46
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +1 -1
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +10 -40
- package/dist/pipeline/src/pipeline/index.d.ts +1 -1
- package/dist/pipeline/src/pipeline/index.js +23 -16
- package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
- package/dist/pipeline/src/pipeline/packageManager.js +47 -59
- package/dist/pipeline/src/rules/index.d.ts +1 -1
- package/dist/pipeline/src/rules/index.js +15 -13
- package/dist/pipeline/src/runner/index.d.ts +1 -1
- package/dist/pipeline/src/runner/index.js +6 -4
- package/dist/pipeline/src/types/agent.d.ts +15 -15
- package/dist/pipeline/src/types/agent.js +4 -2
- package/dist/pipeline/src/types/config.d.ts +152 -150
- package/dist/pipeline/src/types/config.js +24 -28
- package/dist/pipeline/src/types/context.d.ts +104 -104
- package/dist/pipeline/src/types/context.js +9 -7
- package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
- package/dist/pipeline/src/types/environmentContext.js +4 -2
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
- package/dist/pipeline/src/types/gitlab-ci-yml.js +4 -2
- package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
- package/dist/pipeline/src/types/gitlab-types.js +4 -2
- package/dist/pipeline/src/types/hooks.d.ts +31 -22
- package/dist/pipeline/src/types/hooks.js +4 -2
- package/dist/pipeline/src/types/index.d.ts +1 -1
- package/dist/pipeline/src/types/index.js +23 -16
- package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.js +4 -2
- package/dist/pipeline/src/types/jobs.d.ts +93 -94
- package/dist/pipeline/src/types/jobs.js +5 -12
- package/dist/pipeline/src/types/pipeline.d.ts +1 -1
- package/dist/pipeline/src/types/pipeline.js +4 -2
- package/dist/pipeline/src/types/release.d.ts +6 -6
- package/dist/pipeline/src/types/release.js +4 -2
- package/dist/pipeline/src/types/utils.d.ts +1 -3
- package/dist/pipeline/src/types/utils.js +4 -2
- package/dist/pipeline/src/utils/gitlab.d.ts +2 -2
- package/dist/pipeline/src/utils/gitlab.js +12 -15
- package/dist/pipeline/src/utils/index.d.ts +1 -1
- package/dist/pipeline/src/utils/index.js +12 -9
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
- package/dist/pipeline/src/utils/jsonParse.js +11 -10
- package/dist/pipeline/src/utils/measureTime.d.ts +6 -0
- package/dist/pipeline/src/utils/measureTime.js +47 -0
- package/dist/pipeline/src/utils/measureTime.js.map +1 -0
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
- package/dist/pipeline/src/utils/removeUndefined.js +6 -4
- package/dist/pipeline/src/utils/writeFiles.d.ts +11 -9
- package/dist/pipeline/src/utils/writeFiles.js +53 -47
- package/dist/pipeline/src/utils/writeFiles.js.map +1 -1
- package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
- package/dist/pipeline/src/variables/VariableValue.js +4 -2
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +45 -51
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
- package/dist/pipeline/src/variables/resolveAllReferences.js +17 -18
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +14 -17
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +17 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -5
- package/src/adapters/baseContext.ts +55 -0
- package/src/adapters/programmatic.ts +88 -0
- package/src/adapters/terminal.ts +202 -0
- package/src/apps/catenv/catenv.ts +8 -2
- package/src/apps/catenv/verboseBanner.ts +33 -0
- package/src/apps/cli/commands/project/commandConfigSecrets.ts +8 -33
- package/src/apps/cli/commands/project/setup/index.ts +2 -2
- package/src/apps/cli/commands/project/setup/logSection.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupAccessTokens.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupAgents.ts +18 -18
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupContext.ts +2 -5
- package/src/apps/cli/commands/project/setup/setupKubernetes.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupTopic.ts +2 -2
- package/src/apps/cli/commands/project/utils/ensureCluster.ts +19 -12
- package/src/apps/cli/utils/getGoogleAuthUserNumber.ts +5 -4
- package/src/catenv.ts +6 -2
- package/src/cli.ts +192 -2
- package/src/commands/cloudSQL/commandRestoreDb.ts +105 -0
- package/src/commands/fun/commandDadjoke.ts +18 -0
- package/src/commands/fun/commandStarwars.ts +14 -0
- package/src/commands/general/commandKubeCurrentContext.ts +12 -0
- package/src/commands/general/commandKubeGetShell.ts +32 -0
- package/src/commands/general/commandKubeListNamespaces.ts +15 -0
- package/src/commands/general/commandKubeListPods.ts +21 -0
- package/src/commands/general/commandKubeListSecrets.ts +21 -0
- package/src/commands/general/commandKubePortForward.ts +35 -0
- package/src/commands/general/commandKubeStopPortforward.ts +15 -0
- package/src/commands/index.ts +46 -0
- package/src/commands/mongodb/commandMongoDestroyMember.ts +133 -0
- package/src/commands/mongodb/commandMongoGetShell.ts +36 -0
- package/src/commands/mongodb/commandMongoPortForward.ts +56 -0
- package/src/commands/project/commandCloudSqlProxy.ts +189 -0
- package/src/commands/project/commandConfigSecrets.ts +30 -0
- package/src/commands/project/commandDeletePods.ts +53 -0
- package/src/commands/project/commandDeleteProject.ts +33 -0
- package/src/commands/project/commandEnvVars.ts +24 -0
- package/src/commands/project/commandGetMyTotalWorktime.ts +14 -0
- package/src/commands/project/commandGetShell.ts +39 -0
- package/src/commands/project/commandGitlabCi.ts +122 -0
- package/src/commands/project/commandListPods.ts +30 -0
- package/src/commands/project/commandNamespace.ts +21 -0
- package/src/commands/project/commandOpenEnv.ts +27 -0
- package/src/commands/project/commandOpenGit.ts +12 -0
- package/src/commands/project/commandOpenLogs.ts +27 -0
- package/src/commands/project/commandPauseProject.ts +33 -0
- package/src/commands/project/commandPortForward.ts +74 -0
- package/src/commands/project/commandProjectRestoreDb.ts +201 -0
- package/src/commands/project/commandRenewToken.ts +12 -0
- package/src/commands/project/commandSecretsClearBackups.ts +19 -0
- package/src/commands/project/commandSecurityEvaluate.ts +22 -0
- package/src/commands/project/commandSetup.ts +16 -0
- package/src/commands/project/commandTriggerCronjob.ts +99 -0
- package/src/completion.ts +221 -0
- package/src/config/getProjectConfig.ts +11 -10
- package/src/core/defineCommand.ts +32 -0
- package/src/core/index.ts +23 -0
- package/src/core/registry.ts +22 -0
- package/src/core/runner.ts +31 -0
- package/src/core/types.ts +136 -0
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +2 -2
- package/src/gcloud/cloudSql/copyDb.ts +7 -3
- package/src/gcloud/cloudSql/parseConnectionString.ts +28 -0
- package/src/gcloud/openDashboard.ts +3 -3
- package/src/gcloud/serviceAccounts.ts +2 -2
- package/src/kubernetes/openKubernetesDashboards.ts +3 -3
- package/src/utils/gitlab.ts +46 -58
- package/src/utils/log.ts +2 -2
- package/dist/cli/src/apps/cli/cli.d.ts +0 -2
- package/dist/cli/src/apps/cli/cli.js +0 -39
- package/dist/cli/src/apps/cli/cli.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +0 -111
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +0 -10
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/general/index.d.ts +0 -4
- package/dist/cli/src/apps/cli/commands/general/index.js +0 -78
- package/dist/cli/src/apps/cli/commands/general/index.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +0 -11
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/general/portForward.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/general/portForward.js +0 -40
- package/dist/cli/src/apps/cli/commands/general/portForward.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/mongodb/index.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +0 -14
- package/dist/cli/src/apps/cli/commands/mongodb/index.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +0 -94
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +0 -36
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +0 -57
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +0 -126
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +0 -121
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +0 -47
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +0 -28
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +0 -13
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +0 -11
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +0 -34
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +0 -86
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandListPods.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +0 -19
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +0 -11
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +0 -20
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +0 -9
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +0 -14
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +0 -28
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +0 -80
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +0 -9
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +0 -5
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +0 -24
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +0 -19
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandSetup.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +0 -11
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +0 -56
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/index.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/project/index.js +0 -50
- package/dist/cli/src/apps/cli/commands/project/index.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.d.ts +0 -2
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +0 -14
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js.map +0 -1
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +0 -3
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +0 -35
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js.map +0 -1
- package/dist/cli/src/apps/cli/verify/index.d.ts +0 -2
- package/dist/cli/src/apps/cli/verify/index.js +0 -15
- package/dist/cli/src/apps/cli/verify/index.js.map +0 -1
- package/dist/pipeline/src/build/rails/test.js +0 -105
- package/dist/pipeline/src/build/rails/test.js.map +0 -1
- package/dist/pipeline/src/build/sbom.d.ts +0 -5
- package/dist/pipeline/src/build/sbom.js +0 -45
- package/dist/pipeline/src/build/sbom.js.map +0 -1
- package/dist/pipeline/src/deploy/sbom.d.ts +0 -4
- package/dist/pipeline/src/deploy/sbom.js +0 -30
- package/dist/pipeline/src/deploy/sbom.js.map +0 -1
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +0 -5
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js +0 -51
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js.map +0 -1
- package/src/apps/cli/cli.ts +0 -43
- package/src/apps/cli/commands/cloudSQL/commandRestoreDb.ts +0 -136
- package/src/apps/cli/commands/cloudSQL/index.ts +0 -7
- package/src/apps/cli/commands/general/index.ts +0 -90
- package/src/apps/cli/commands/general/namespaceAutoCompletion.ts +0 -7
- package/src/apps/cli/commands/general/portForward.ts +0 -48
- package/src/apps/cli/commands/mongodb/index.ts +0 -10
- package/src/apps/cli/commands/mongodb/projectMongoDestroyMember.ts +0 -132
- package/src/apps/cli/commands/mongodb/projectMongoGetShell.ts +0 -42
- package/src/apps/cli/commands/mongodb/projectMongoPortForward.ts +0 -64
- package/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.ts +0 -181
- package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +0 -194
- package/src/apps/cli/commands/project/commandDeletePods.ts +0 -48
- package/src/apps/cli/commands/project/commandDeleteProject.ts +0 -33
- package/src/apps/cli/commands/project/commandEnvVars.ts +0 -18
- package/src/apps/cli/commands/project/commandGetMyTotalWorktime.ts +0 -14
- package/src/apps/cli/commands/project/commandGetShell.ts +0 -36
- package/src/apps/cli/commands/project/commandGitlabCi.ts +0 -115
- package/src/apps/cli/commands/project/commandListPods.ts +0 -20
- package/src/apps/cli/commands/project/commandNamespace.ts +0 -14
- package/src/apps/cli/commands/project/commandOpenEnv.ts +0 -22
- package/src/apps/cli/commands/project/commandOpenGit.ts +0 -12
- package/src/apps/cli/commands/project/commandOpenLogs.ts +0 -21
- package/src/apps/cli/commands/project/commandPauseProject.ts +0 -33
- package/src/apps/cli/commands/project/commandPortForward.ts +0 -91
- package/src/apps/cli/commands/project/commandRenewToken.ts +0 -12
- package/src/apps/cli/commands/project/commandSecretsClearBackups.ts +0 -26
- package/src/apps/cli/commands/project/commandSecurityEvaluate.ts +0 -26
- package/src/apps/cli/commands/project/commandSetup.ts +0 -14
- package/src/apps/cli/commands/project/commandTriggerCronjob.ts +0 -62
- package/src/apps/cli/commands/project/index.ts +0 -56
- package/src/apps/cli/commands/project/utils/showProjectBanner.ts +0 -11
- package/src/apps/cli/commands/theStuffThatReallyMatters/index.ts +0 -32
- package/src/apps/cli/verify/index.ts +0 -14
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "../../core/defineCommand";
|
|
2
|
+
import { clearBackups } from "../../utils/gitlab";
|
|
3
|
+
|
|
4
|
+
export const commandSecretsClearBackups = defineCommand({
|
|
5
|
+
name: "project-secrets-clear-backups",
|
|
6
|
+
description: "clears all backups",
|
|
7
|
+
group: "project",
|
|
8
|
+
inputs: {
|
|
9
|
+
keep: {
|
|
10
|
+
type: "number",
|
|
11
|
+
message: "How many backups should we keep? 🤔",
|
|
12
|
+
default: 1,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
execute: async (ctx) => {
|
|
16
|
+
const keep = await ctx.get("keep");
|
|
17
|
+
await clearBackups(ctx, keep);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "../../core/defineCommand";
|
|
2
|
+
import {
|
|
3
|
+
evaluateSecurityAudit,
|
|
4
|
+
makeSecurityAuditOverview,
|
|
5
|
+
} from "../../apps/catci/commands/security/evaluateSecurityAudit";
|
|
6
|
+
import { getGitRoot } from "../../utils/projects";
|
|
7
|
+
|
|
8
|
+
export const commandSecurityEvaluate = defineCommand({
|
|
9
|
+
name: "project-security-evaluate",
|
|
10
|
+
description: "evaluate project's security audit document",
|
|
11
|
+
group: "project",
|
|
12
|
+
inputs: {},
|
|
13
|
+
execute: async (ctx) => {
|
|
14
|
+
const gitRoot = await getGitRoot();
|
|
15
|
+
const result = await evaluateSecurityAudit({ path: gitRoot });
|
|
16
|
+
if (result.isErr()) {
|
|
17
|
+
ctx.log(`Could not evaluate security audit document: ${result.error}`);
|
|
18
|
+
} else {
|
|
19
|
+
ctx.log(makeSecurityAuditOverview(result.value));
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineCommand } from "../../core/defineCommand";
|
|
2
|
+
import { setupProject } from "../../apps/cli/commands/project/setup";
|
|
3
|
+
|
|
4
|
+
export const commandSetup = defineCommand({
|
|
5
|
+
name: "project-setup",
|
|
6
|
+
description:
|
|
7
|
+
"Initializes all environments and creates required resources, service accounts, etc.",
|
|
8
|
+
group: "project",
|
|
9
|
+
inputs: {
|
|
10
|
+
component: { type: "string", message: "component name", positional: true },
|
|
11
|
+
},
|
|
12
|
+
execute: async (ctx) => {
|
|
13
|
+
const component = await ctx.get("component");
|
|
14
|
+
await setupProject(ctx, component);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { V1ObjectMeta } from "@kubernetes/client-node";
|
|
2
|
+
import { V1Job } from "@kubernetes/client-node";
|
|
3
|
+
import { defineCommand } from "../../core/defineCommand";
|
|
4
|
+
import { getk8sApiBatch, getk8sApiBatchBeta } from "../../k8sApi";
|
|
5
|
+
import { logError } from "../../utils/log";
|
|
6
|
+
import { getProjectNamespace } from "../../utils/projects";
|
|
7
|
+
import { ensureCluster } from "../../apps/cli/commands/project/utils/ensureCluster";
|
|
8
|
+
import { envAndComponents } from "../../apps/cli/commands/project/utils/autocompletions";
|
|
9
|
+
|
|
10
|
+
const getCronjobChoices = async (namespace: string) => {
|
|
11
|
+
const {
|
|
12
|
+
body: { items: jobs },
|
|
13
|
+
} = await getk8sApiBatchBeta().listNamespacedCronJob(namespace);
|
|
14
|
+
return jobs.map((j: any) => j.metadata.name) as string[];
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const runCronjob = async (
|
|
18
|
+
io: { log: (msg: string) => void },
|
|
19
|
+
namespace: string,
|
|
20
|
+
jobName: string,
|
|
21
|
+
) => {
|
|
22
|
+
const {
|
|
23
|
+
body: { items: jobs },
|
|
24
|
+
} = await getk8sApiBatchBeta().listNamespacedCronJob(namespace);
|
|
25
|
+
|
|
26
|
+
const cronjob = jobs.find((j: any) => j.metadata.name === jobName);
|
|
27
|
+
const jobSpec = (cronjob as any).spec.jobTemplate.spec;
|
|
28
|
+
|
|
29
|
+
const job = new V1Job();
|
|
30
|
+
const metadata: Partial<V1ObjectMeta> = {
|
|
31
|
+
name: `manual-${Math.round(Date.now() / 1000)}-${(cronjob as any).metadata.name}`,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
job.metadata = metadata as V1ObjectMeta;
|
|
35
|
+
job.spec = jobSpec;
|
|
36
|
+
try {
|
|
37
|
+
const result = await getk8sApiBatch().createNamespacedJob(namespace, job);
|
|
38
|
+
io.log("");
|
|
39
|
+
io.log(
|
|
40
|
+
`yeah, you got a job, man. 😺 ${(result as any).body.metadata.name}`,
|
|
41
|
+
);
|
|
42
|
+
io.log("");
|
|
43
|
+
} catch (e: any) {
|
|
44
|
+
logError(io, "command failed", e.body);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const commandTriggerCronjobGeneral = defineCommand({
|
|
49
|
+
name: "trigger-cronjob",
|
|
50
|
+
description: "trigger cronjob",
|
|
51
|
+
group: "general",
|
|
52
|
+
inputs: {
|
|
53
|
+
namespace: {
|
|
54
|
+
type: "string",
|
|
55
|
+
message: "kubernetes namespace",
|
|
56
|
+
positional: true,
|
|
57
|
+
},
|
|
58
|
+
jobName: {
|
|
59
|
+
type: "string",
|
|
60
|
+
message: "Which cronjob? 🤔",
|
|
61
|
+
choices: async (ctx) => getCronjobChoices(await ctx.get("namespace")),
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
execute: async (ctx) => {
|
|
65
|
+
const namespace = await ctx.get("namespace");
|
|
66
|
+
const jobName = await ctx.get("jobName");
|
|
67
|
+
await runCronjob(ctx, namespace, jobName);
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const commandTriggerCronjobProject = defineCommand({
|
|
72
|
+
name: "project-trigger-cronjob",
|
|
73
|
+
description: "trigger cronjob",
|
|
74
|
+
group: "project",
|
|
75
|
+
inputs: {
|
|
76
|
+
envComponent: {
|
|
77
|
+
type: "string",
|
|
78
|
+
message: "environment:component",
|
|
79
|
+
positional: true,
|
|
80
|
+
choices: async () => envAndComponents(),
|
|
81
|
+
},
|
|
82
|
+
jobName: {
|
|
83
|
+
type: "string",
|
|
84
|
+
message: "Which cronjob? 🤔",
|
|
85
|
+
choices: async (ctx) => {
|
|
86
|
+
const envComponent = await ctx.get("envComponent");
|
|
87
|
+
const namespace = await getProjectNamespace(envComponent);
|
|
88
|
+
return getCronjobChoices(namespace);
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
execute: async (ctx) => {
|
|
93
|
+
const envComponent = await ctx.get("envComponent");
|
|
94
|
+
await ensureCluster(ctx, envComponent);
|
|
95
|
+
const namespace = await getProjectNamespace(envComponent);
|
|
96
|
+
const jobName = await ctx.get("jobName");
|
|
97
|
+
await runCronjob(ctx, namespace, jobName);
|
|
98
|
+
},
|
|
99
|
+
});
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync, existsSync } from "fs";
|
|
2
|
+
import { join } from "path";
|
|
3
|
+
import { homedir } from "os";
|
|
4
|
+
import type { CommandDef, InputDef } from "./core/types";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Generate completions for the current command line.
|
|
8
|
+
*
|
|
9
|
+
* @param allCommands - All registered command definitions
|
|
10
|
+
* @param words - The words typed so far (argv without the binary name)
|
|
11
|
+
* @param cursorWord - The word currently being completed (may be empty)
|
|
12
|
+
* @returns Array of completion strings
|
|
13
|
+
*/
|
|
14
|
+
export async function getCompletions(
|
|
15
|
+
allCommands: CommandDef[],
|
|
16
|
+
words: string[],
|
|
17
|
+
cursorWord: string,
|
|
18
|
+
): Promise<string[]> {
|
|
19
|
+
// If no command yet, complete command names
|
|
20
|
+
if (words.length === 0) {
|
|
21
|
+
return allCommands
|
|
22
|
+
.map((c) => c.name)
|
|
23
|
+
.filter((name) => name.startsWith(cursorWord));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const commandName = words[0];
|
|
27
|
+
const command = allCommands.find((c) => c.name === commandName);
|
|
28
|
+
|
|
29
|
+
// If the first word doesn't match a command, complete command names
|
|
30
|
+
if (!command) {
|
|
31
|
+
return allCommands
|
|
32
|
+
.map((c) => c.name)
|
|
33
|
+
.filter((name) => name.startsWith(commandName));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// We have a valid command. Figure out what to complete.
|
|
37
|
+
const argsAfterCommand = words.slice(1);
|
|
38
|
+
|
|
39
|
+
// Check if we're completing a --flag value
|
|
40
|
+
const prevWord = argsAfterCommand[argsAfterCommand.length - 1];
|
|
41
|
+
if (prevWord?.startsWith("--")) {
|
|
42
|
+
// Previous word is a flag, complete its values
|
|
43
|
+
const flagName = prevWord.replace(/^--/, "");
|
|
44
|
+
const inputName = flagNameToInputName(flagName);
|
|
45
|
+
const inputDef = command.inputs[inputName];
|
|
46
|
+
if (inputDef && "choices" in inputDef && inputDef.choices) {
|
|
47
|
+
return resolveChoicesForCompletion(inputDef, cursorWord);
|
|
48
|
+
}
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Check if we're typing a --flag name
|
|
53
|
+
if (cursorWord.startsWith("--")) {
|
|
54
|
+
return getFlagCompletions(command, cursorWord);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Otherwise, complete positional inputs
|
|
58
|
+
const positionalInputs = getPositionalInputs(command);
|
|
59
|
+
const positionalArgs = argsAfterCommand.filter((w) => !w.startsWith("--"));
|
|
60
|
+
|
|
61
|
+
// Which positional index are we on?
|
|
62
|
+
const positionalIndex = positionalArgs.length;
|
|
63
|
+
const targetInput = positionalInputs[positionalIndex];
|
|
64
|
+
|
|
65
|
+
if (targetInput) {
|
|
66
|
+
const [, inputDef] = targetInput;
|
|
67
|
+
if ("choices" in inputDef && inputDef.choices) {
|
|
68
|
+
return resolveChoicesForCompletion(inputDef, cursorWord);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function getPositionalInputs(command: CommandDef): [string, InputDef][] {
|
|
76
|
+
return Object.entries(command.inputs).filter(([, def]) => def.positional);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function getFlagCompletions(command: CommandDef, cursorWord: string): string[] {
|
|
80
|
+
const flags: string[] = [];
|
|
81
|
+
for (const [name, inputDef] of Object.entries(command.inputs)) {
|
|
82
|
+
if (inputDef.positional) continue;
|
|
83
|
+
const flagName = `--${name.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
|
|
84
|
+
flags.push(flagName);
|
|
85
|
+
}
|
|
86
|
+
flags.push("--inputs");
|
|
87
|
+
flags.push("--yes");
|
|
88
|
+
return flags.filter((f) => f.startsWith(cursorWord));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function flagNameToInputName(flagName: string): string {
|
|
92
|
+
return flagName.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async function resolveChoicesForCompletion(
|
|
96
|
+
inputDef: InputDef,
|
|
97
|
+
cursorWord: string,
|
|
98
|
+
): Promise<string[]> {
|
|
99
|
+
if (!("choices" in inputDef) || !inputDef.choices) return [];
|
|
100
|
+
try {
|
|
101
|
+
// Create a minimal ctx that returns empty for any get() call.
|
|
102
|
+
// This works for choices functions that don't depend on other inputs
|
|
103
|
+
// (like envAndComponents). For dependent choices, completion won't work
|
|
104
|
+
// but that's acceptable -- those are typically non-positional.
|
|
105
|
+
const noopCtx = {
|
|
106
|
+
get: () => Promise.reject(new Error("not available during completion")),
|
|
107
|
+
log: () => {},
|
|
108
|
+
confirm: () => Promise.resolve(true),
|
|
109
|
+
promptDirect: () =>
|
|
110
|
+
Promise.reject(new Error("not available during completion")),
|
|
111
|
+
};
|
|
112
|
+
const choices = await inputDef.choices(noopCtx);
|
|
113
|
+
return choices
|
|
114
|
+
.map((c) => (typeof c === "string" ? c : c.value))
|
|
115
|
+
.filter((v) => v.startsWith(cursorWord));
|
|
116
|
+
} catch {
|
|
117
|
+
// If choices function fails (e.g., needs other inputs), return nothing
|
|
118
|
+
return [];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generate the zsh completion script.
|
|
124
|
+
* The user adds `eval "$(catladder completion zsh)"` to their .zshrc.
|
|
125
|
+
*/
|
|
126
|
+
export function generateZshCompletionScript(binaryName: string): string {
|
|
127
|
+
const funcName = binaryName.replace(/-/g, "_");
|
|
128
|
+
return `
|
|
129
|
+
###-begin-${funcName}-completions-###
|
|
130
|
+
_${funcName}_completions() {
|
|
131
|
+
local -a completions
|
|
132
|
+
local current_word="\${words[$CURRENT]}"
|
|
133
|
+
|
|
134
|
+
# Words after the binary name, excluding the current word being completed
|
|
135
|
+
local -a cmd_words=(\${words:1:$((CURRENT-2))})
|
|
136
|
+
|
|
137
|
+
# Call the CLI's __complete command
|
|
138
|
+
completions=(\${(f)"$(${binaryName} __complete -- "\${cmd_words[*]}" "$current_word" 2>/dev/null)"})
|
|
139
|
+
|
|
140
|
+
if [[ \${#completions[@]} -gt 0 ]]; then
|
|
141
|
+
compadd -a completions
|
|
142
|
+
fi
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
compdef _${funcName}_completions ${binaryName}
|
|
146
|
+
###-end-${funcName}-completions-###
|
|
147
|
+
`.trim();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const BEGIN_MARKER = (name: string) =>
|
|
151
|
+
`###-begin-${name.replace(/-/g, "_")}-completions-###`;
|
|
152
|
+
|
|
153
|
+
function getZshrcPath(): string {
|
|
154
|
+
return join(homedir(), ".zshrc");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Install completions by adding an eval line to .zshrc.
|
|
159
|
+
*/
|
|
160
|
+
export async function installCompletions(binaryName: string): Promise<void> {
|
|
161
|
+
const zshrcPath = getZshrcPath();
|
|
162
|
+
const evalLine = `eval "$(${binaryName} completion zsh)"`;
|
|
163
|
+
const marker = BEGIN_MARKER(binaryName);
|
|
164
|
+
|
|
165
|
+
let content = "";
|
|
166
|
+
if (existsSync(zshrcPath)) {
|
|
167
|
+
content = readFileSync(zshrcPath, "utf-8");
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (content.includes(marker)) {
|
|
171
|
+
console.log(
|
|
172
|
+
`Completions for ${binaryName} are already installed in ${zshrcPath}`,
|
|
173
|
+
);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const addition = `\n# ${binaryName} shell completions\n${evalLine}\n`;
|
|
178
|
+
writeFileSync(zshrcPath, content + addition);
|
|
179
|
+
console.log(`Installed completions for ${binaryName} in ${zshrcPath}`);
|
|
180
|
+
console.log(`Restart your shell or run: source ${zshrcPath}`);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Remove completions from .zshrc.
|
|
185
|
+
*/
|
|
186
|
+
export async function uninstallCompletions(binaryName: string): Promise<void> {
|
|
187
|
+
const zshrcPath = getZshrcPath();
|
|
188
|
+
if (!existsSync(zshrcPath)) {
|
|
189
|
+
console.log("No .zshrc found");
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const content = readFileSync(zshrcPath, "utf-8");
|
|
194
|
+
const evalLine = `eval "$(${binaryName} completion zsh)"`;
|
|
195
|
+
const commentLine = `# ${binaryName} shell completions`;
|
|
196
|
+
|
|
197
|
+
if (!content.includes(evalLine)) {
|
|
198
|
+
console.log(`No completions for ${binaryName} found in ${zshrcPath}`);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const cleaned = content
|
|
203
|
+
.replace(
|
|
204
|
+
new RegExp(
|
|
205
|
+
`\\n?${commentLine.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\n?`,
|
|
206
|
+
"g",
|
|
207
|
+
),
|
|
208
|
+
"\n",
|
|
209
|
+
)
|
|
210
|
+
.replace(
|
|
211
|
+
new RegExp(
|
|
212
|
+
`\\n?${evalLine.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\n?`,
|
|
213
|
+
"g",
|
|
214
|
+
),
|
|
215
|
+
"\n",
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
writeFileSync(zshrcPath, cleaned);
|
|
219
|
+
console.log(`Removed completions for ${binaryName} from ${zshrcPath}`);
|
|
220
|
+
console.log(`Restart your shell or run: source ${zshrcPath}`);
|
|
221
|
+
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getSecretVarName,
|
|
12
12
|
} from "@catladder/pipeline";
|
|
13
13
|
|
|
14
|
-
import type {
|
|
14
|
+
import type { IO } from "../core/types";
|
|
15
15
|
import { getAllVariables, getVariableValueByRawName } from "../utils/gitlab";
|
|
16
16
|
|
|
17
17
|
import { getGitRoot } from "../utils/projects";
|
|
@@ -94,6 +94,7 @@ export const getAllComponentsWithAllEnvsHierarchical = async (): Promise<{
|
|
|
94
94
|
|
|
95
95
|
export const getAllPipelineContexts = async (
|
|
96
96
|
onlyComponent?: string | string[],
|
|
97
|
+
{ includeLocal = false }: { includeLocal?: boolean } = {},
|
|
97
98
|
) => {
|
|
98
99
|
const onlyComponentsArray = onlyComponent
|
|
99
100
|
? Array.isArray(onlyComponent)
|
|
@@ -102,7 +103,7 @@ export const getAllPipelineContexts = async (
|
|
|
102
103
|
: null;
|
|
103
104
|
return Promise.all(
|
|
104
105
|
(await getAllComponentsWithAllEnvsFlat())
|
|
105
|
-
.filter((c) => c.env !== "local")
|
|
106
|
+
.filter((c) => includeLocal || c.env !== "local")
|
|
106
107
|
.filter(
|
|
107
108
|
(c) =>
|
|
108
109
|
!onlyComponentsArray || onlyComponentsArray.includes(c.componentName),
|
|
@@ -120,20 +121,20 @@ export const getEnvironment = async (env: string, componentName: string) => {
|
|
|
120
121
|
};
|
|
121
122
|
|
|
122
123
|
export const getGitlabVar = async (
|
|
123
|
-
|
|
124
|
+
io: IO,
|
|
124
125
|
env: string,
|
|
125
126
|
componentName: string,
|
|
126
127
|
variableName: string,
|
|
127
128
|
) => {
|
|
128
129
|
const rawVariableName = getSecretVarName(env, componentName, variableName);
|
|
129
|
-
return await getVariableValueByRawName(
|
|
130
|
+
return await getVariableValueByRawName(io, rawVariableName);
|
|
130
131
|
};
|
|
131
132
|
|
|
132
133
|
const resolveSecrets = async (
|
|
133
|
-
|
|
134
|
+
io: IO | null,
|
|
134
135
|
varSets: EnvironmentEnvVars[],
|
|
135
136
|
): Promise<Record<string, string>> => {
|
|
136
|
-
const allVariablesInGitlab = await getAllVariables(
|
|
137
|
+
const allVariablesInGitlab = await getAllVariables(io);
|
|
137
138
|
|
|
138
139
|
return Object.fromEntries(
|
|
139
140
|
varSets.flatMap(({ envVars, secretEnvVarKeys }) =>
|
|
@@ -157,7 +158,7 @@ const resolveSecrets = async (
|
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
export const getEnvVarsResolved = async (
|
|
160
|
-
|
|
161
|
+
io: IO | null,
|
|
161
162
|
env: string,
|
|
162
163
|
componentName: string | null,
|
|
163
164
|
) => {
|
|
@@ -169,7 +170,7 @@ export const getEnvVarsResolved = async (
|
|
|
169
170
|
|
|
170
171
|
// in the pipeline the secrets alreadyy exists and bash will expand them
|
|
171
172
|
// but here we need to manually load them
|
|
172
|
-
return resolveSecrets(
|
|
173
|
+
return resolveSecrets(io, [
|
|
173
174
|
{
|
|
174
175
|
envVars: envionment.envVars,
|
|
175
176
|
secretEnvVarKeys: envionment.secretEnvVarKeys,
|
|
@@ -182,12 +183,12 @@ export const getEnvVarsResolved = async (
|
|
|
182
183
|
* is used to get job only vars that should also be editable locally with catladder.
|
|
183
184
|
*/
|
|
184
185
|
export const getJobOnlyEnvVarsResolved = async (
|
|
185
|
-
|
|
186
|
+
io: IO,
|
|
186
187
|
env: string,
|
|
187
188
|
componentName: string,
|
|
188
189
|
) => {
|
|
189
190
|
const envionment = await getEnvironment(env, componentName);
|
|
190
|
-
return resolveSecrets(
|
|
191
|
+
return resolveSecrets(io, [
|
|
191
192
|
envionment.jobOnlyVars.build,
|
|
192
193
|
envionment.jobOnlyVars.deploy,
|
|
193
194
|
]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CommandDef, InputDef } from "./types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type-safe builder for command definitions.
|
|
5
|
+
* Infers TInputs from the definition object so that
|
|
6
|
+
* `ctx.get("...")` is fully typed.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* export const myCommand = defineCommand({
|
|
11
|
+
* name: "my-command",
|
|
12
|
+
* description: "Does something",
|
|
13
|
+
* inputs: {
|
|
14
|
+
* envComponent: { type: "string", message: "env:component", positional: true },
|
|
15
|
+
* podName: { type: "string", message: "Which pod?", choices: async () => ["a", "b"] },
|
|
16
|
+
* mr: { type: "number", message: "Which MR?" },
|
|
17
|
+
* confirmed: { type: "boolean", message: "Continue?" },
|
|
18
|
+
* },
|
|
19
|
+
* execute: async (ctx) => {
|
|
20
|
+
* const env = await ctx.get("envComponent"); // string
|
|
21
|
+
* const pod = await ctx.get("podName"); // string
|
|
22
|
+
* const mr = await ctx.get("mr"); // number
|
|
23
|
+
* const ok = await ctx.get("confirmed"); // boolean
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export function defineCommand<const TInputs extends Record<string, InputDef>>(
|
|
29
|
+
def: CommandDef<TInputs>,
|
|
30
|
+
): CommandDef<TInputs> {
|
|
31
|
+
return def;
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
CommandContext,
|
|
3
|
+
CommandDef,
|
|
4
|
+
IO,
|
|
5
|
+
InputDef,
|
|
6
|
+
InputResultType,
|
|
7
|
+
InputsSchema,
|
|
8
|
+
StringInputDef,
|
|
9
|
+
StringArrayInputDef,
|
|
10
|
+
NumberInputDef,
|
|
11
|
+
BooleanInputDef,
|
|
12
|
+
PromptChoice,
|
|
13
|
+
ChoicesFn,
|
|
14
|
+
} from "./types";
|
|
15
|
+
export { MissingInputError } from "./types";
|
|
16
|
+
export { defineCommand } from "./defineCommand";
|
|
17
|
+
export {
|
|
18
|
+
registerCommand,
|
|
19
|
+
getCommand,
|
|
20
|
+
getAllCommands,
|
|
21
|
+
getCommandsByGroup,
|
|
22
|
+
} from "./registry";
|
|
23
|
+
export { runCommand } from "./runner";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CommandDef } from "./types";
|
|
2
|
+
|
|
3
|
+
const commands: Map<string, CommandDef> = new Map();
|
|
4
|
+
|
|
5
|
+
export function registerCommand(def: CommandDef): void {
|
|
6
|
+
if (commands.has(def.name)) {
|
|
7
|
+
throw new Error(`Command "${def.name}" is already registered`);
|
|
8
|
+
}
|
|
9
|
+
commands.set(def.name, def);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function getCommand(name: string): CommandDef | undefined {
|
|
13
|
+
return commands.get(name);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function getAllCommands(): CommandDef[] {
|
|
17
|
+
return Array.from(commands.values());
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function getCommandsByGroup(group: string): CommandDef[] {
|
|
21
|
+
return getAllCommands().filter((c) => c.group === group);
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CommandDef, InputsSchema } from "./types";
|
|
2
|
+
import { createProgrammaticContext } from "../adapters/programmatic";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Run a command programmatically.
|
|
6
|
+
* This is the main entry point for calling commands from code.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { commandPortForward } from "./commands/project/portForward";
|
|
11
|
+
* import { runCommand } from "./core/runner";
|
|
12
|
+
*
|
|
13
|
+
* await runCommand(commandPortForward, {
|
|
14
|
+
* inputs: { envComponent: "dev:web", podName: "web-abc", localPort: 3000, remotePort: 3000 },
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export async function runCommand<TInputs extends InputsSchema>(
|
|
19
|
+
command: CommandDef<TInputs>,
|
|
20
|
+
options: {
|
|
21
|
+
inputs?: Record<string, unknown>;
|
|
22
|
+
onLog?: (message: string) => void;
|
|
23
|
+
} = {},
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
const ctx = createProgrammaticContext(command, {
|
|
26
|
+
inputs: options.inputs,
|
|
27
|
+
onLog: options.onLog,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
await command.execute(ctx);
|
|
31
|
+
}
|