@salesforce/plugin-devops-center 1.2.26 → 1.2.28
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/LICENSE.txt +200 -6
- package/README.md +430 -19
- package/bin/dev.js +15 -0
- package/bin/run.js +5 -0
- package/lib/commands/devops/pipeline/activate.d.ts +14 -0
- package/lib/commands/devops/pipeline/activate.js +82 -0
- package/lib/commands/devops/pipeline/activate.js.map +1 -0
- package/lib/commands/devops/pipeline/attach-project.d.ts +15 -0
- package/lib/commands/devops/pipeline/attach-project.js +82 -0
- package/lib/commands/devops/pipeline/attach-project.js.map +1 -0
- package/lib/commands/devops/pipeline/create.d.ts +23 -0
- package/lib/commands/devops/pipeline/create.js +136 -0
- package/lib/commands/devops/pipeline/create.js.map +1 -0
- package/lib/commands/devops/pipeline/stage/add.d.ts +16 -0
- package/lib/commands/devops/pipeline/stage/add.js +94 -0
- package/lib/commands/devops/pipeline/stage/add.js.map +1 -0
- package/lib/commands/devops/project/create.d.ts +15 -0
- package/lib/commands/devops/project/create.js +72 -0
- package/lib/commands/devops/project/create.js.map +1 -0
- package/lib/commands/devops/project/list.d.ts +20 -0
- package/lib/commands/devops/project/list.js +59 -0
- package/lib/commands/devops/project/list.js.map +1 -0
- package/lib/commands/devops/pull-request/create.d.ts +17 -0
- package/lib/commands/devops/pull-request/create.js +104 -0
- package/lib/commands/devops/pull-request/create.js.map +1 -0
- package/lib/commands/devops/work-item/create.d.ts +16 -0
- package/lib/commands/devops/work-item/create.js +76 -0
- package/lib/commands/devops/work-item/create.js.map +1 -0
- package/lib/commands/devops/work-item/list.d.ts +17 -0
- package/lib/commands/devops/work-item/list.js +72 -0
- package/lib/commands/devops/work-item/list.js.map +1 -0
- package/lib/commands/devops/work-item/status/update.d.ts +16 -0
- package/lib/commands/devops/work-item/status/update.js +90 -0
- package/lib/commands/devops/work-item/status/update.js.map +1 -0
- package/lib/commands/project/deploy/pipeline/quick.d.ts +2 -2
- package/lib/commands/project/deploy/pipeline/quick.js +24 -21
- package/lib/commands/project/deploy/pipeline/quick.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/report.d.ts +4 -4
- package/lib/commands/project/deploy/pipeline/report.js +38 -35
- package/lib/commands/project/deploy/pipeline/report.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/resume.d.ts +2 -2
- package/lib/commands/project/deploy/pipeline/resume.js +24 -21
- package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/start.d.ts +3 -3
- package/lib/commands/project/deploy/pipeline/start.js +26 -23
- package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/validate.d.ts +3 -3
- package/lib/commands/project/deploy/pipeline/validate.js +24 -21
- package/lib/commands/project/deploy/pipeline/validate.js.map +1 -1
- package/lib/common/base/abstractAsyncOperation.d.ts +3 -3
- package/lib/common/base/abstractAsyncOperation.js +31 -23
- package/lib/common/base/abstractAsyncOperation.js.map +1 -1
- package/lib/common/base/abstractPromote.d.ts +5 -4
- package/lib/common/base/abstractPromote.js +52 -38
- package/lib/common/base/abstractPromote.js.map +1 -1
- package/lib/common/base/abstractQuick.d.ts +4 -3
- package/lib/common/base/abstractQuick.js +44 -43
- package/lib/common/base/abstractQuick.js.map +1 -1
- package/lib/common/base/abstractReportOnPromote.d.ts +2 -1
- package/lib/common/base/abstractReportOnPromote.js +31 -24
- package/lib/common/base/abstractReportOnPromote.js.map +1 -1
- package/lib/common/base/abstractResume.d.ts +3 -2
- package/lib/common/base/abstractResume.js +40 -33
- package/lib/common/base/abstractResume.js.map +1 -1
- package/lib/common/constants.js +19 -13
- package/lib/common/constants.js.map +1 -1
- package/lib/common/deployPipelineCache.js +20 -15
- package/lib/common/deployPipelineCache.js.map +1 -1
- package/lib/common/flags/flags.d.ts +2 -2
- package/lib/common/flags/flags.js +34 -29
- package/lib/common/flags/flags.js.map +1 -1
- package/lib/common/flags/promote/promoteFlags.d.ts +3 -3
- package/lib/common/flags/promote/promoteFlags.js +26 -20
- package/lib/common/flags/promote/promoteFlags.js.map +1 -1
- package/lib/common/index.d.ts +3 -2
- package/lib/common/index.js +2 -17
- package/lib/common/index.js.map +1 -1
- package/lib/common/outputColumns.d.ts +3 -13
- package/lib/common/outputColumns.js +23 -19
- package/lib/common/outputColumns.js.map +1 -1
- package/lib/common/outputService/aorOutputService.d.ts +4 -4
- package/lib/common/outputService/aorOutputService.js +27 -20
- package/lib/common/outputService/aorOutputService.js.map +1 -1
- package/lib/common/outputService/deployCommandOutputService.d.ts +2 -2
- package/lib/common/outputService/deployCommandOutputService.js +17 -12
- package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
- package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
- package/lib/common/outputService/deploySummaryBuilder.js +45 -31
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
- package/lib/common/outputService/deploymentResultOutputService.d.ts +4 -4
- package/lib/common/outputService/deploymentResultOutputService.js +16 -10
- package/lib/common/outputService/deploymentResultOutputService.js.map +1 -1
- package/lib/common/outputService/index.d.ts +8 -6
- package/lib/common/outputService/index.js +5 -19
- package/lib/common/outputService/index.js.map +1 -1
- package/lib/common/outputService/outputService.d.ts +6 -4
- package/lib/common/outputService/outputService.js +20 -14
- package/lib/common/outputService/outputService.js.map +1 -1
- package/lib/common/outputService/outputServiceFactory.d.ts +8 -8
- package/lib/common/outputService/outputServiceFactory.js +21 -16
- package/lib/common/outputService/outputServiceFactory.js.map +1 -1
- package/lib/common/outputService/outputUtils.d.ts +1 -1
- package/lib/common/outputService/outputUtils.js +24 -19
- package/lib/common/outputService/outputUtils.js.map +1 -1
- package/lib/common/outputService/promoteOutputService.d.ts +4 -5
- package/lib/common/outputService/promoteOutputService.js +19 -13
- package/lib/common/outputService/promoteOutputService.js.map +1 -1
- package/lib/common/outputService/reportOutputService.d.ts +5 -6
- package/lib/common/outputService/reportOutputService.js +32 -27
- package/lib/common/outputService/reportOutputService.js.map +1 -1
- package/lib/common/outputService/resumeCommandOutputService.d.ts +3 -3
- package/lib/common/outputService/resumeCommandOutputService.js +19 -13
- package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
- package/lib/common/outputService/resumeOutputService.d.ts +3 -3
- package/lib/common/outputService/resumeOutputService.js +23 -17
- package/lib/common/outputService/resumeOutputService.js.map +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.d.ts +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js +16 -10
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.d.ts +1 -1
- package/lib/common/selectors/deployComponentsSelector.js +18 -13
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.d.ts +2 -2
- package/lib/common/selectors/deployProgressSummarySelector.js +16 -10
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +2 -2
- package/lib/common/selectors/deploymentResultsSelector.js +20 -16
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.d.ts +2 -2
- package/lib/common/selectors/environmentSelector.js +16 -10
- package/lib/common/selectors/environmentSelector.js.map +1 -1
- package/lib/common/selectors/namedCredentialSelector.d.ts +1 -1
- package/lib/common/selectors/namedCredentialSelector.js +16 -10
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.d.ts +1 -1
- package/lib/common/selectors/pipelineStageSelector.js +18 -13
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/selectorUtils.d.ts +1 -1
- package/lib/common/selectors/selectorUtils.js +17 -11
- package/lib/common/selectors/selectorUtils.js.map +1 -1
- package/lib/common/selectors/validateDeploySelector.d.ts +1 -1
- package/lib/common/selectors/validateDeploySelector.js +16 -10
- package/lib/common/selectors/validateDeploySelector.js.map +1 -1
- package/lib/common/selectors/workItemSelector.d.ts +2 -2
- package/lib/common/selectors/workItemSelector.js +16 -10
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/common/types.d.ts +4 -4
- package/lib/common/types.js +4 -7
- package/lib/common/types.js.map +1 -1
- package/lib/common/utils.d.ts +4 -4
- package/lib/common/utils.js +42 -43
- package/lib/common/utils.js.map +1 -1
- package/lib/configMeta.js +21 -15
- package/lib/configMeta.js.map +1 -1
- package/lib/streamer/doceMonitor.d.ts +3 -2
- package/lib/streamer/doceMonitor.js +14 -6
- package/lib/streamer/doceMonitor.js.map +1 -1
- package/lib/streamer/doceStream.d.ts +1 -1
- package/lib/streamer/doceStream.js +19 -11
- package/lib/streamer/doceStream.js.map +1 -1
- package/lib/streamer/processors/asyncOpStream.d.ts +2 -2
- package/lib/streamer/processors/asyncOpStream.js +22 -15
- package/lib/streamer/processors/asyncOpStream.js.map +1 -1
- package/lib/streamer/sObjectStream.d.ts +1 -1
- package/lib/streamer/sObjectStream.js +9 -10
- package/lib/streamer/sObjectStream.js.map +1 -1
- package/lib/utils/activatePipeline.d.ts +17 -0
- package/lib/utils/activatePipeline.js +35 -0
- package/lib/utils/activatePipeline.js.map +1 -0
- package/lib/utils/addPipelineStage.d.ts +20 -0
- package/lib/utils/addPipelineStage.js +43 -0
- package/lib/utils/addPipelineStage.js.map +1 -0
- package/lib/utils/attachProject.d.ts +21 -0
- package/lib/utils/attachProject.js +44 -0
- package/lib/utils/attachProject.js.map +1 -0
- package/lib/utils/createPipeline.d.ts +34 -0
- package/lib/utils/createPipeline.js +77 -0
- package/lib/utils/createPipeline.js.map +1 -0
- package/lib/utils/createProject.d.ts +17 -0
- package/lib/utils/createProject.js +39 -0
- package/lib/utils/createProject.js.map +1 -0
- package/lib/utils/createPullRequest.d.ts +49 -0
- package/lib/utils/createPullRequest.js +204 -0
- package/lib/utils/createPullRequest.js.map +1 -0
- package/lib/utils/createWorkItem.d.ts +19 -0
- package/lib/utils/createWorkItem.js +58 -0
- package/lib/utils/createWorkItem.js.map +1 -0
- package/lib/utils/pipelineUtils.d.ts +8 -0
- package/lib/utils/pipelineUtils.js +51 -0
- package/lib/utils/pipelineUtils.js.map +1 -0
- package/lib/utils/types.d.ts +57 -0
- package/lib/utils/types.js +17 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/updateWorkItemStatus.d.ts +34 -0
- package/lib/utils/updateWorkItemStatus.js +71 -0
- package/lib/utils/updateWorkItemStatus.js.map +1 -0
- package/lib/utils/workItems.d.ts +3 -0
- package/lib/utils/workItems.js +181 -0
- package/lib/utils/workItems.js.map +1 -0
- package/messages/commonErrors.md +5 -1
- package/messages/devops.pipeline.activate.md +29 -0
- package/messages/devops.pipeline.attach-project.md +29 -0
- package/messages/devops.pipeline.create.md +81 -0
- package/messages/devops.pipeline.stage.add.md +37 -0
- package/messages/devops.project.create.md +29 -0
- package/messages/devops.project.list.md +17 -0
- package/messages/devops.pull-request.create.md +57 -0
- package/messages/devops.work-item.create.md +29 -0
- package/messages/devops.work-item.list.md +21 -0
- package/messages/devops.work-item.status.update.md +29 -0
- package/npm-shrinkwrap.json +4594 -4552
- package/oclif.lock +3513 -3194
- package/oclif.manifest.json +863 -11
- package/package.json +56 -26
- package/schemas/devops-pipeline-activate.json +28 -0
- package/schemas/devops-pipeline-attach__project.json +25 -0
- package/schemas/devops-pipeline-create.json +50 -0
- package/schemas/devops-pipeline-stage-add.json +31 -0
- package/schemas/devops-project-create.json +28 -0
- package/schemas/devops-project-list.json +35 -0
- package/schemas/devops-pull__request-create.json +34 -0
- package/schemas/devops-work__item-create.json +28 -0
- package/schemas/devops-work__item-list.json +75 -0
- package/schemas/devops-work__item-status-update.json +28 -0
- package/schemas/project-deploy-pipeline-report.json +2 -2
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
/*
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the
|
|
7
|
-
*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
8
15
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const messages =
|
|
14
|
-
class DeployPipelineReport extends
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Flags } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { ReportOnPromoteCommand } from '../../../../common/base/abstractReportOnPromote.js';
|
|
19
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
20
|
+
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.report');
|
|
21
|
+
export default class DeployPipelineReport extends ReportOnPromoteCommand {
|
|
22
|
+
static description = messages.getMessage('description');
|
|
23
|
+
static summary = messages.getMessage('summary');
|
|
24
|
+
static examples = messages.getMessages('examples');
|
|
25
|
+
static state = 'beta';
|
|
26
|
+
static flags = {
|
|
27
|
+
'job-id': Flags.salesforceId({
|
|
28
|
+
char: 'i',
|
|
29
|
+
description: messages.getMessage('flags.job-id.description'),
|
|
30
|
+
summary: messages.getMessage('flags.job-id.summary'),
|
|
31
|
+
exactlyOne: ['use-most-recent', 'job-id'],
|
|
32
|
+
}),
|
|
33
|
+
'use-most-recent': Flags.boolean({
|
|
34
|
+
char: 'r',
|
|
35
|
+
description: messages.getMessage('flags.use-most-recent.description'),
|
|
36
|
+
summary: messages.getMessage('flags.use-most-recent.summary'),
|
|
37
|
+
exactlyOne: ['use-most-recent', 'job-id'],
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
operationName = 'Deploy';
|
|
19
41
|
async run() {
|
|
20
42
|
return this.getOperationReport();
|
|
21
43
|
}
|
|
22
44
|
}
|
|
23
|
-
DeployPipelineReport.description = messages.getMessage('description');
|
|
24
|
-
DeployPipelineReport.summary = messages.getMessage('summary');
|
|
25
|
-
DeployPipelineReport.examples = messages.getMessages('examples');
|
|
26
|
-
DeployPipelineReport.state = 'beta';
|
|
27
|
-
DeployPipelineReport.flags = {
|
|
28
|
-
'job-id': sf_plugins_core_1.Flags.salesforceId({
|
|
29
|
-
char: 'i',
|
|
30
|
-
description: messages.getMessage('flags.job-id.description'),
|
|
31
|
-
summary: messages.getMessage('flags.job-id.summary'),
|
|
32
|
-
exactlyOne: ['use-most-recent', 'job-id'],
|
|
33
|
-
}),
|
|
34
|
-
'use-most-recent': sf_plugins_core_1.Flags.boolean({
|
|
35
|
-
char: 'r',
|
|
36
|
-
description: messages.getMessage('flags.use-most-recent.description'),
|
|
37
|
-
summary: messages.getMessage('flags.use-most-recent.summary'),
|
|
38
|
-
exactlyOne: ['use-most-recent', 'job-id'],
|
|
39
|
-
}),
|
|
40
|
-
};
|
|
41
|
-
exports.default = DeployPipelineReport;
|
|
42
45
|
//# sourceMappingURL=report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/report.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAA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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { AsyncOperationResultJson } from '../../../../common';
|
|
3
|
-
import { ResumeCommand } from '../../../../common/base/abstractResume';
|
|
2
|
+
import type { AsyncOperationResultJson } from '../../../../common/index.js';
|
|
3
|
+
import { ResumeCommand } from '../../../../common/base/abstractResume.js';
|
|
4
4
|
export default class DeployPipelineResume extends ResumeCommand<typeof SfCommand> {
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
7
15
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { ResumeCommand } from '../../../../common/base/abstractResume.js';
|
|
18
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
19
|
+
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.resume');
|
|
20
|
+
export default class DeployPipelineResume extends ResumeCommand {
|
|
21
|
+
static summary = messages.getMessage('summary');
|
|
22
|
+
static description = messages.getMessage('description');
|
|
23
|
+
static examples = messages.getMessages('examples');
|
|
24
|
+
static state = 'beta';
|
|
25
|
+
operationType = 'Deployment';
|
|
26
|
+
baseCommand = 'project deploy pipeline';
|
|
19
27
|
async run() {
|
|
20
28
|
return this.resumeOperation();
|
|
21
29
|
}
|
|
22
30
|
}
|
|
23
|
-
DeployPipelineResume.summary = messages.getMessage('summary');
|
|
24
|
-
DeployPipelineResume.description = messages.getMessage('description');
|
|
25
|
-
DeployPipelineResume.examples = messages.getMessages('examples');
|
|
26
|
-
DeployPipelineResume.state = 'beta';
|
|
27
|
-
exports.default = DeployPipelineResume;
|
|
28
31
|
//# sourceMappingURL=resume.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/resume.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/resume.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE1E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAE7G,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,aAA+B;IACxE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAE5B,aAAa,GAAG,YAAY,CAAC;IAC7B,WAAW,GAAG,yBAAyB,CAAC;IAE3C,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;IAChC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PromoteCommand } from '../../../../common/base/abstractPromote';
|
|
3
|
-
import { PromoteOptions } from '../../../../common';
|
|
4
|
-
import { AsyncOperationResultJson } from '../../../../common/types';
|
|
2
|
+
import { PromoteCommand } from '../../../../common/base/abstractPromote.js';
|
|
3
|
+
import type { PromoteOptions } from '../../../../common/index.js';
|
|
4
|
+
import type { AsyncOperationResultJson } from '../../../../common/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Contains the logic to execute the sf project deploy pipeline start command.
|
|
7
7
|
*/
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
7
15
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { PromoteCommand } from '../../../../common/base/abstractPromote.js';
|
|
18
|
+
import { APPROVED } from '../../../../common/constants.js';
|
|
19
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
20
|
+
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
|
|
14
21
|
/**
|
|
15
22
|
* Contains the logic to execute the sf project deploy pipeline start command.
|
|
16
23
|
*/
|
|
17
|
-
class DeployPipeline extends
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
export default class DeployPipeline extends PromoteCommand {
|
|
25
|
+
static summary = messages.getMessage('summary');
|
|
26
|
+
static description = messages.getMessage('description');
|
|
27
|
+
static examples = messages.getMessages('examples');
|
|
28
|
+
static state = 'beta';
|
|
29
|
+
baseCommand = 'project deploy pipeline';
|
|
30
|
+
isUndeployedOnly = true;
|
|
23
31
|
async run() {
|
|
24
32
|
return this.executePromotion();
|
|
25
33
|
}
|
|
@@ -34,7 +42,7 @@ class DeployPipeline extends abstractPromote_1.PromoteCommand {
|
|
|
34
42
|
const targetStage = this.getTargetStage();
|
|
35
43
|
return targetStage.sf_devops__Pipeline_Stages__r
|
|
36
44
|
? targetStage.sf_devops__Pipeline_Stages__r.records[0].Id
|
|
37
|
-
:
|
|
45
|
+
: APPROVED;
|
|
38
46
|
}
|
|
39
47
|
/**
|
|
40
48
|
* Returns the promote option necessary to performs an undeployed only promotion
|
|
@@ -43,9 +51,4 @@ class DeployPipeline extends abstractPromote_1.PromoteCommand {
|
|
|
43
51
|
return { undeployedOnly: this.isUndeployedOnly };
|
|
44
52
|
}
|
|
45
53
|
}
|
|
46
|
-
DeployPipeline.summary = messages.getMessage('summary');
|
|
47
|
-
DeployPipeline.description = messages.getMessage('description');
|
|
48
|
-
DeployPipeline.examples = messages.getMessages('examples');
|
|
49
|
-
DeployPipeline.state = 'beta';
|
|
50
|
-
exports.default = DeployPipeline;
|
|
51
54
|
//# sourceMappingURL=start.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/start.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/start.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,+BAA+B,CAAC,CAAC;AAE5G;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAgC;IACnE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAC5B,WAAW,GAAG,yBAAyB,CAAC;IACjC,gBAAgB,GAAG,IAAI,CAAC;IAElC,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACO,gBAAgB;QACxB,MAAM,WAAW,GAAkB,IAAI,CAAC,cAAc,EAAE,CAAC;QACzD,OAAO,WAAW,CAAC,6BAA6B;YAC9C,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;YACzD,CAAC,CAAC,QAAQ,CAAC;IACf,CAAC;IAED;;OAEG;IACO,iBAAiB;QACzB,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACnD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PromoteOptions } from '../../../../common';
|
|
2
|
-
import { AsyncOperationResultJson } from '../../../../common/types';
|
|
3
|
-
import DeployPipeline from './start';
|
|
1
|
+
import type { PromoteOptions } from '../../../../common/index.js';
|
|
2
|
+
import type { AsyncOperationResultJson } from '../../../../common/types.js';
|
|
3
|
+
import DeployPipeline from './start.js';
|
|
4
4
|
/**
|
|
5
5
|
* Contains the logic to execute the sf project deploy pipeline validate command.
|
|
6
6
|
*/
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
7
15
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.validate');
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import DeployPipeline from './start.js';
|
|
18
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
19
|
+
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.validate');
|
|
13
20
|
/**
|
|
14
21
|
* Contains the logic to execute the sf project deploy pipeline validate command.
|
|
15
22
|
*/
|
|
16
|
-
class ValidateDeployPipeline extends
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
export default class ValidateDeployPipeline extends DeployPipeline {
|
|
24
|
+
static summary = messages.getMessage('summary');
|
|
25
|
+
static description = messages.getMessage('description');
|
|
26
|
+
static examples = messages.getMessages('examples');
|
|
27
|
+
static state = 'beta';
|
|
28
|
+
baseCommand = 'project deploy pipeline';
|
|
29
|
+
isCheckDeploy = true;
|
|
22
30
|
async run() {
|
|
23
31
|
return this.executePromotion();
|
|
24
32
|
}
|
|
@@ -29,9 +37,4 @@ class ValidateDeployPipeline extends start_1.default {
|
|
|
29
37
|
return { ...super.getPromoteOptions(), checkDeploy: this.isCheckDeploy };
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
ValidateDeployPipeline.summary = messages.getMessage('summary');
|
|
33
|
-
ValidateDeployPipeline.description = messages.getMessage('description');
|
|
34
|
-
ValidateDeployPipeline.examples = messages.getMessages('examples');
|
|
35
|
-
ValidateDeployPipeline.state = 'beta';
|
|
36
|
-
exports.default = ValidateDeployPipeline;
|
|
37
40
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/validate.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,cAAc,MAAM,YAAY,CAAC;AAExC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,kCAAkC,CAAC,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,cAAc;IACzD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAC5B,WAAW,GAAG,yBAAyB,CAAC;IACjC,aAAa,GAAG,IAAI,CAAC;IAE/B,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACO,iBAAiB;QACzB,OAAO,EAAE,GAAG,KAAK,CAAC,iBAAiB,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC;IAC3E,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Org, SfError } from '@salesforce/core';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
3
|
import { Duration } from '@salesforce/kit';
|
|
4
|
-
import { AsyncOperationResultJson } from '../types';
|
|
5
|
-
import { PromoteOutputService } from '../outputService';
|
|
4
|
+
import { type AsyncOperationResultJson } from '../types.js';
|
|
5
|
+
import type { PromoteOutputService } from '../outputService/index.js';
|
|
6
6
|
export declare abstract class AsyncCommand extends SfCommand<AsyncOperationResultJson> {
|
|
7
7
|
static readonly enableJsonFlag = true;
|
|
8
8
|
protected targetOrg: Org;
|
|
@@ -23,7 +23,7 @@ export declare abstract class AsyncCommand extends SfCommand<AsyncOperationResul
|
|
|
23
23
|
* @param error
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
protected catch(error: Error | SfError): Promise<
|
|
26
|
+
protected catch(error: Error | SfError): Promise<never>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* Stores the AOR Id in cache.
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsyncCommand = void 0;
|
|
4
1
|
/*
|
|
5
|
-
* Copyright
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the
|
|
8
|
-
*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
9
15
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const messages =
|
|
17
|
-
class AsyncCommand extends
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { DeployPipelineCache } from '../deployPipelineCache.js';
|
|
19
|
+
import { AsyncOperationStatus } from '../types.js';
|
|
20
|
+
import { fetchAsyncOperationResult, getAsyncOperationStreamer } from '../../common/index.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
23
|
+
export class AsyncCommand extends SfCommand {
|
|
24
|
+
static enableJsonFlag = true;
|
|
25
|
+
targetOrg;
|
|
26
|
+
asyncOperationId;
|
|
27
|
+
outputService;
|
|
18
28
|
setAsyncOperationId(aorId) {
|
|
19
29
|
this.asyncOperationId = aorId;
|
|
20
30
|
}
|
|
@@ -35,7 +45,7 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
|
|
|
35
45
|
return this.getOperationState();
|
|
36
46
|
}
|
|
37
47
|
await this.startMonitoring(wait);
|
|
38
|
-
if (this.outputService.getStatus() ===
|
|
48
|
+
if (this.outputService.getStatus() === AsyncOperationStatus.Completed) {
|
|
39
49
|
this.outputService.displayEndResults();
|
|
40
50
|
}
|
|
41
51
|
return this.getOperationState();
|
|
@@ -58,14 +68,14 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
|
|
|
58
68
|
* Stores the AOR Id in cache.
|
|
59
69
|
*/
|
|
60
70
|
async cacheOperation() {
|
|
61
|
-
await
|
|
71
|
+
await DeployPipelineCache.set(this.asyncOperationId, {});
|
|
62
72
|
}
|
|
63
73
|
/**
|
|
64
74
|
*
|
|
65
75
|
* Executes a query to get the state of the AOR record.
|
|
66
76
|
*/
|
|
67
77
|
async getOperationState() {
|
|
68
|
-
const asyncJob = await
|
|
78
|
+
const asyncJob = await fetchAsyncOperationResult(this.targetOrg.getConnection(), this.asyncOperationId);
|
|
69
79
|
return {
|
|
70
80
|
jobId: this.asyncOperationId,
|
|
71
81
|
status: asyncJob.sf_devops__Status__c,
|
|
@@ -79,10 +89,10 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
|
|
|
79
89
|
* @param wait
|
|
80
90
|
*/
|
|
81
91
|
async startMonitoring(wait) {
|
|
82
|
-
const asyncJob = await
|
|
92
|
+
const asyncJob = await fetchAsyncOperationResult(this.targetOrg.getConnection(), this.asyncOperationId);
|
|
83
93
|
if (asyncJob.sf_devops__Status__c === undefined ||
|
|
84
|
-
asyncJob.sf_devops__Status__c ===
|
|
85
|
-
const streamer =
|
|
94
|
+
asyncJob.sf_devops__Status__c === AsyncOperationStatus.InProgress) {
|
|
95
|
+
const streamer = getAsyncOperationStreamer(this.targetOrg, wait, this.asyncOperationId, this.outputService);
|
|
86
96
|
await streamer.monitor();
|
|
87
97
|
}
|
|
88
98
|
else {
|
|
@@ -90,6 +100,4 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
|
|
|
90
100
|
}
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
|
-
exports.AsyncCommand = AsyncCommand;
|
|
94
|
-
AsyncCommand.enableJsonFlag = true;
|
|
95
103
|
//# sourceMappingURL=abstractAsyncOperation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractAsyncOperation.js","sourceRoot":"","sources":["../../../src/common/base/abstractAsyncOperation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abstractAsyncOperation.js","sourceRoot":"","sources":["../../../src/common/base/abstractAsyncOperation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAgB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAA4D,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC7G,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAG7F,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,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MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { Interfaces } from '@oclif/core';
|
|
3
|
-
import { PipelineStage, PromoteOptions } from '
|
|
4
|
-
import { AsyncOperationResultJson } from '../../common';
|
|
5
|
-
import { AsyncCommand } from './abstractAsyncOperation';
|
|
3
|
+
import { PipelineStage, PromoteOptions, TestLevel } from '../index.js';
|
|
4
|
+
import type { AsyncOperationResultJson } from '../../common/index.js';
|
|
5
|
+
import { AsyncCommand } from './abstractAsyncOperation.js';
|
|
6
6
|
export type Flags<T extends typeof SfCommand> = Interfaces.InferredFlags<(typeof PromoteCommand)['baseFlags'] & T['flags']>;
|
|
7
7
|
export declare abstract class PromoteCommand<T extends typeof SfCommand> extends AsyncCommand {
|
|
8
8
|
static readonly enableJsonFlag = true;
|
|
@@ -13,11 +13,12 @@ export declare abstract class PromoteCommand<T extends typeof SfCommand> extends
|
|
|
13
13
|
'devops-center-project-name': Interfaces.OptionFlag<string>;
|
|
14
14
|
'devops-center-username': Interfaces.OptionFlag<import("@salesforce/core").Org, Interfaces.CustomOptions>;
|
|
15
15
|
tests: Interfaces.OptionFlag<string[] | undefined>;
|
|
16
|
-
'test-level': Interfaces.OptionFlag<
|
|
16
|
+
'test-level': Interfaces.OptionFlag<TestLevel | undefined, Interfaces.CustomOptions>;
|
|
17
17
|
async: Interfaces.BooleanFlag<boolean>;
|
|
18
18
|
wait: Interfaces.OptionFlag<import("@salesforce/kit").Duration>;
|
|
19
19
|
verbose: Interfaces.BooleanFlag<boolean>;
|
|
20
20
|
concise: Interfaces.BooleanFlag<boolean>;
|
|
21
|
+
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
22
|
};
|
|
22
23
|
protected flags: Flags<T>;
|
|
23
24
|
private targetStage;
|