@salesforce/plugin-deploy-retrieve 1.20.2 → 2.0.1
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 +66 -64
- package/lib/commands/deploy.d.ts +1 -1
- package/lib/commands/deploy.js +48 -51
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/project/convert/mdapi.d.ts +8 -8
- package/lib/commands/project/convert/mdapi.js +63 -63
- package/lib/commands/project/convert/mdapi.js.map +1 -1
- package/lib/commands/project/convert/source.d.ts +16 -40
- package/lib/commands/project/convert/source.js +71 -72
- package/lib/commands/project/convert/source.js.map +1 -1
- package/lib/commands/project/delete/source.d.ts +9 -61
- package/lib/commands/project/delete/source.js +182 -180
- package/lib/commands/project/delete/source.js.map +1 -1
- package/lib/commands/project/delete/tracking.d.ts +4 -4
- package/lib/commands/project/delete/tracking.js +27 -29
- package/lib/commands/project/delete/tracking.js.map +1 -1
- package/lib/commands/project/deploy/cancel.d.ts +5 -5
- package/lib/commands/project/deploy/cancel.js +58 -59
- package/lib/commands/project/deploy/cancel.js.map +1 -1
- package/lib/commands/project/deploy/preview.d.ts +6 -6
- package/lib/commands/project/deploy/preview.js +57 -58
- package/lib/commands/project/deploy/preview.js.map +1 -1
- package/lib/commands/project/deploy/quick.d.ts +9 -9
- package/lib/commands/project/deploy/quick.js +85 -86
- package/lib/commands/project/deploy/quick.js.map +1 -1
- package/lib/commands/project/deploy/report.d.ts +8 -60
- package/lib/commands/project/deploy/report.js +72 -73
- package/lib/commands/project/deploy/report.js.map +1 -1
- package/lib/commands/project/deploy/resume.d.ts +9 -61
- package/lib/commands/project/deploy/resume.js +82 -83
- package/lib/commands/project/deploy/resume.js.map +1 -1
- package/lib/commands/project/deploy/start.d.ts +24 -128
- package/lib/commands/project/deploy/start.js +168 -169
- package/lib/commands/project/deploy/start.js.map +1 -1
- package/lib/commands/project/deploy/validate.d.ts +21 -125
- package/lib/commands/project/deploy/validate.js +149 -149
- package/lib/commands/project/deploy/validate.js.map +1 -1
- package/lib/commands/project/generate/manifest.d.ts +9 -9
- package/lib/commands/project/generate/manifest.js +73 -78
- package/lib/commands/project/generate/manifest.js.map +1 -1
- package/lib/commands/project/list/ignored.d.ts +1 -1
- package/lib/commands/project/list/ignored.js +27 -29
- package/lib/commands/project/list/ignored.js.map +1 -1
- package/lib/commands/project/reset/tracking.d.ts +5 -5
- package/lib/commands/project/reset/tracking.js +33 -35
- package/lib/commands/project/reset/tracking.js.map +1 -1
- package/lib/commands/project/retrieve/preview.d.ts +3 -3
- package/lib/commands/project/retrieve/preview.js +35 -36
- package/lib/commands/project/retrieve/preview.js.map +1 -1
- package/lib/commands/project/retrieve/start.d.ts +11 -11
- package/lib/commands/project/retrieve/start.js +148 -149
- package/lib/commands/project/retrieve/start.js.map +1 -1
- package/lib/configMeta.js +8 -9
- package/lib/configMeta.js.map +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.js +12 -12
- package/lib/formatters/asyncDeployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/asyncDeployResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployResultFormatter.js +14 -14
- package/lib/formatters/asyncDeployResultFormatter.js.map +1 -1
- package/lib/formatters/deleteResultFormatter.d.ts +2 -2
- package/lib/formatters/deleteResultFormatter.js +21 -23
- package/lib/formatters/deleteResultFormatter.js.map +1 -1
- package/lib/formatters/deployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/deployCancelResultFormatter.js +7 -10
- package/lib/formatters/deployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/deployReportResultFormatter.d.ts +1 -1
- package/lib/formatters/deployReportResultFormatter.js +18 -22
- package/lib/formatters/deployReportResultFormatter.js.map +1 -1
- package/lib/formatters/deployResultFormatter.d.ts +2 -2
- package/lib/formatters/deployResultFormatter.js +53 -50
- package/lib/formatters/deployResultFormatter.js.map +1 -1
- package/lib/formatters/metadataConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataConvertResultFormatter.js +7 -9
- package/lib/formatters/metadataConvertResultFormatter.js.map +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.js +17 -16
- package/lib/formatters/metadataRetrieveResultFormatter.js.map +1 -1
- package/lib/formatters/retrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/retrieveResultFormatter.js +17 -17
- package/lib/formatters/retrieveResultFormatter.js.map +1 -1
- package/lib/formatters/sourceConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/sourceConvertResultFormatter.js +12 -14
- package/lib/formatters/sourceConvertResultFormatter.js.map +1 -1
- package/lib/formatters/testResultsFormatter.d.ts +1 -1
- package/lib/formatters/testResultsFormatter.js +38 -38
- package/lib/formatters/testResultsFormatter.js.map +1 -1
- package/lib/hooks/deploy.d.ts +1 -1
- package/lib/hooks/deploy.js +5 -7
- package/lib/hooks/deploy.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/conflicts.js +3 -7
- package/lib/utils/conflicts.js.map +1 -1
- package/lib/utils/coverage.js +20 -30
- package/lib/utils/coverage.js.map +1 -1
- package/lib/utils/deploy.d.ts +1 -1
- package/lib/utils/deploy.js +55 -64
- package/lib/utils/deploy.js.map +1 -1
- package/lib/utils/deployCache.d.ts +1 -1
- package/lib/utils/deployCache.js +12 -16
- package/lib/utils/deployCache.js.map +1 -1
- package/lib/utils/errorCodes.js +15 -16
- package/lib/utils/errorCodes.js.map +1 -1
- package/lib/utils/flags.d.ts +25 -7
- package/lib/utils/flags.js +24 -27
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/manifestCache.js +9 -14
- package/lib/utils/manifestCache.js.map +1 -1
- package/lib/utils/metadataDeployer.d.ts +1 -1
- package/lib/utils/metadataDeployer.js +40 -39
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.js +13 -22
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/previewOutput.js +46 -52
- package/lib/utils/previewOutput.js.map +1 -1
- package/lib/utils/progressBar.js +19 -21
- package/lib/utils/progressBar.js.map +1 -1
- package/lib/utils/project.js +7 -13
- package/lib/utils/project.js.map +1 -1
- package/lib/utils/promiseQueue.js +3 -7
- package/lib/utils/promiseQueue.js.map +1 -1
- package/lib/utils/types.js +12 -19
- package/lib/utils/types.js.map +1 -1
- package/oclif.lock +8667 -0
- package/oclif.manifest.json +1442 -942
- package/package.json +38 -36
- package/schemas/project-retrieve-start.json +14 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Duration } from '@salesforce/kit';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import { DeployResultJson, TestLevel } from '../../../utils/types';
|
|
3
|
+
import { DeployResultJson, TestLevel } from '../../../utils/types.js';
|
|
4
4
|
export default class DeployMetadataValidate extends SfCommand<DeployResultJson> {
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly summary: string;
|
|
@@ -8,130 +8,26 @@ export default class DeployMetadataValidate extends SfCommand<DeployResultJson>
|
|
|
8
8
|
static readonly aliases: string[];
|
|
9
9
|
static readonly deprecateAliases = true;
|
|
10
10
|
static readonly flags: {
|
|
11
|
-
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
-
async: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
-
concise: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
-
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
-
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
|
-
'metadata-dir': import("@oclif/core/lib/interfaces").OptionFlag<import("../../../utils/types").PathInfo | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
-
'single-package': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
|
-
tests:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exclusive?: string[] | undefined;
|
|
32
|
-
exactlyOne?: string[] | undefined;
|
|
33
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
34
|
-
deprecated?: true | import("@oclif/core/lib/interfaces").Deprecation | undefined;
|
|
35
|
-
aliases?: string[] | undefined;
|
|
36
|
-
deprecateAliases?: boolean | undefined;
|
|
37
|
-
delimiter?: "," | undefined;
|
|
38
|
-
type: "option";
|
|
39
|
-
helpValue?: string | undefined;
|
|
40
|
-
options?: string[] | undefined;
|
|
41
|
-
multiple: false;
|
|
42
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string[] | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
43
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
44
|
-
input: string[];
|
|
45
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
46
|
-
} | {
|
|
47
|
-
helpGroup: string;
|
|
48
|
-
name: string;
|
|
49
|
-
char?: import("@oclif/core/lib/interfaces").AlphabetLowercase | import("@oclif/core/lib/interfaces").AlphabetUppercase | undefined;
|
|
50
|
-
summary?: string | undefined;
|
|
51
|
-
description?: string | undefined;
|
|
52
|
-
helpLabel?: string | undefined;
|
|
53
|
-
env?: string | undefined;
|
|
54
|
-
hidden?: boolean | undefined;
|
|
55
|
-
required?: boolean | undefined;
|
|
56
|
-
dependsOn?: string[] | undefined;
|
|
57
|
-
exclusive?: string[] | undefined;
|
|
58
|
-
exactlyOne?: string[] | undefined;
|
|
59
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
60
|
-
deprecated?: true | import("@oclif/core/lib/interfaces").Deprecation | undefined;
|
|
61
|
-
aliases?: string[] | undefined;
|
|
62
|
-
deprecateAliases?: boolean | undefined;
|
|
63
|
-
delimiter?: "," | undefined;
|
|
64
|
-
type: "option";
|
|
65
|
-
helpValue?: string | undefined;
|
|
66
|
-
options?: string[] | undefined;
|
|
67
|
-
multiple: true;
|
|
68
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string[] | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
69
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
70
|
-
input: string[];
|
|
71
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<(string[] | undefined)[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
72
|
-
};
|
|
73
|
-
'test-level': import("@oclif/core/lib/interfaces").OptionFlag<TestLevel, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
74
|
-
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
75
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
76
|
-
'ignore-warnings': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
77
|
-
'coverage-formatters': {
|
|
78
|
-
helpGroup: string;
|
|
79
|
-
name: string;
|
|
80
|
-
char?: import("@oclif/core/lib/interfaces").AlphabetLowercase | import("@oclif/core/lib/interfaces").AlphabetUppercase | undefined;
|
|
81
|
-
summary?: string | undefined;
|
|
82
|
-
description?: string | undefined;
|
|
83
|
-
helpLabel?: string | undefined;
|
|
84
|
-
env?: string | undefined;
|
|
85
|
-
hidden?: boolean | undefined;
|
|
86
|
-
required?: boolean | undefined;
|
|
87
|
-
dependsOn?: string[] | undefined;
|
|
88
|
-
exclusive?: string[] | undefined;
|
|
89
|
-
exactlyOne?: string[] | undefined;
|
|
90
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
91
|
-
deprecated?: true | import("@oclif/core/lib/interfaces").Deprecation | undefined;
|
|
92
|
-
aliases?: string[] | undefined;
|
|
93
|
-
deprecateAliases?: boolean | undefined;
|
|
94
|
-
delimiter?: "," | undefined;
|
|
95
|
-
type: "option";
|
|
96
|
-
helpValue?: string | undefined;
|
|
97
|
-
options?: string[] | undefined;
|
|
98
|
-
multiple: false;
|
|
99
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string[] | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
100
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
101
|
-
input: string[];
|
|
102
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
103
|
-
} | {
|
|
104
|
-
helpGroup: string;
|
|
105
|
-
name: string;
|
|
106
|
-
char?: import("@oclif/core/lib/interfaces").AlphabetLowercase | import("@oclif/core/lib/interfaces").AlphabetUppercase | undefined;
|
|
107
|
-
summary?: string | undefined;
|
|
108
|
-
description?: string | undefined;
|
|
109
|
-
helpLabel?: string | undefined;
|
|
110
|
-
env?: string | undefined;
|
|
111
|
-
hidden?: boolean | undefined;
|
|
112
|
-
required?: boolean | undefined;
|
|
113
|
-
dependsOn?: string[] | undefined;
|
|
114
|
-
exclusive?: string[] | undefined;
|
|
115
|
-
exactlyOne?: string[] | undefined;
|
|
116
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
117
|
-
deprecated?: true | import("@oclif/core/lib/interfaces").Deprecation | undefined;
|
|
118
|
-
aliases?: string[] | undefined;
|
|
119
|
-
deprecateAliases?: boolean | undefined;
|
|
120
|
-
delimiter?: "," | undefined;
|
|
121
|
-
type: "option";
|
|
122
|
-
helpValue?: string | undefined;
|
|
123
|
-
options?: string[] | undefined;
|
|
124
|
-
multiple: true;
|
|
125
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string[] | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
126
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
127
|
-
input: string[];
|
|
128
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<(string[] | undefined)[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
129
|
-
};
|
|
130
|
-
junit: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
131
|
-
'results-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
132
|
-
'purge-on-delete': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
133
|
-
'pre-destructive-changes': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
134
|
-
'post-destructive-changes': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
+
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
12
|
+
async: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
13
|
+
concise: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
14
|
+
manifest: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
15
|
+
metadata: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
|
+
'source-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
17
|
+
'metadata-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("../../../utils/types.js").PathInfo | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
18
|
+
'single-package': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
19
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
|
+
tests: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
21
|
+
'test-level': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<TestLevel, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
22
|
+
verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
23
|
+
wait: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
24
|
+
'ignore-warnings': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
25
|
+
'coverage-formatters': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
26
|
+
junit: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
27
|
+
'results-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
28
|
+
'purge-on-delete': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
29
|
+
'pre-destructive-changes': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
30
|
+
'post-destructive-changes': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
135
31
|
};
|
|
136
32
|
static configurationVariablesSection: import("@oclif/core").HelpSection;
|
|
137
33
|
static envVariablesSection: import("@oclif/core").HelpSection;
|
|
@@ -1,43 +1,157 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
/*
|
|
4
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
5
3
|
* All rights reserved.
|
|
6
4
|
* Licensed under the BSD 3-Clause license.
|
|
7
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
7
|
+
import * as os from 'node:os';
|
|
8
|
+
import { dirname } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
import chalk from 'chalk';
|
|
11
|
+
import { EnvironmentVariable, Lifecycle, Messages, OrgConfigProperties, SfError } from '@salesforce/core';
|
|
12
|
+
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
13
|
+
import { Duration, ensureArray } from '@salesforce/kit';
|
|
14
|
+
import { SfCommand, toHelpSection, Flags } from '@salesforce/sf-plugins-core';
|
|
15
|
+
import { AsyncDeployResultFormatter } from '../../../formatters/asyncDeployResultFormatter.js';
|
|
16
|
+
import { DeployResultFormatter } from '../../../formatters/deployResultFormatter.js';
|
|
17
|
+
import { DeployProgress } from '../../../utils/progressBar.js';
|
|
18
|
+
import { TestLevel } from '../../../utils/types.js';
|
|
19
|
+
import { executeDeploy, resolveApi, determineExitCode, validateTests } from '../../../utils/deploy.js';
|
|
20
|
+
import { DEPLOY_STATUS_CODES_DESCRIPTIONS } from '../../../utils/errorCodes.js';
|
|
21
|
+
import { ConfigVars } from '../../../configMeta.js';
|
|
22
|
+
import { coverageFormattersFlag, fileOrDirFlag, testLevelFlag, testsFlag } from '../../../utils/flags.js';
|
|
23
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
24
|
+
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata.validate');
|
|
25
|
+
const deployMessages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata');
|
|
27
26
|
const EXACTLY_ONE_FLAGS = ['manifest', 'source-dir', 'metadata', 'metadata-dir'];
|
|
28
27
|
const destructiveFlags = 'Delete';
|
|
29
28
|
const testFlags = 'Test';
|
|
30
29
|
const sourceFormatFlags = 'Source Format';
|
|
31
30
|
const mdapiFormatFlags = 'Metadata API Format';
|
|
32
|
-
class DeployMetadataValidate extends
|
|
31
|
+
export default class DeployMetadataValidate extends SfCommand {
|
|
32
|
+
static description = messages.getMessage('description');
|
|
33
|
+
static summary = messages.getMessage('summary');
|
|
34
|
+
static examples = messages.getMessages('examples');
|
|
35
|
+
static aliases = ['deploy:metadata:validate'];
|
|
36
|
+
static deprecateAliases = true;
|
|
37
|
+
static flags = {
|
|
38
|
+
'api-version': Flags.orgApiVersion({
|
|
39
|
+
char: 'a',
|
|
40
|
+
summary: messages.getMessage('flags.api-version.summary'),
|
|
41
|
+
description: messages.getMessage('flags.api-version.description'),
|
|
42
|
+
}),
|
|
43
|
+
async: Flags.boolean({
|
|
44
|
+
summary: messages.getMessage('flags.async.summary'),
|
|
45
|
+
description: messages.getMessage('flags.async.description'),
|
|
46
|
+
}),
|
|
47
|
+
concise: Flags.boolean({
|
|
48
|
+
summary: messages.getMessage('flags.concise.summary'),
|
|
49
|
+
exclusive: ['verbose'],
|
|
50
|
+
}),
|
|
51
|
+
manifest: Flags.file({
|
|
52
|
+
char: 'x',
|
|
53
|
+
description: messages.getMessage('flags.manifest.description'),
|
|
54
|
+
summary: messages.getMessage('flags.manifest.summary'),
|
|
55
|
+
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
56
|
+
helpGroup: sourceFormatFlags,
|
|
57
|
+
}),
|
|
58
|
+
metadata: Flags.string({
|
|
59
|
+
char: 'm',
|
|
60
|
+
summary: messages.getMessage('flags.metadata.summary'),
|
|
61
|
+
multiple: true,
|
|
62
|
+
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
63
|
+
helpGroup: sourceFormatFlags,
|
|
64
|
+
}),
|
|
65
|
+
'source-dir': Flags.string({
|
|
66
|
+
char: 'd',
|
|
67
|
+
description: messages.getMessage('flags.source-dir.description'),
|
|
68
|
+
summary: messages.getMessage('flags.source-dir.summary'),
|
|
69
|
+
multiple: true,
|
|
70
|
+
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
71
|
+
helpGroup: sourceFormatFlags,
|
|
72
|
+
}),
|
|
73
|
+
'metadata-dir': fileOrDirFlag({
|
|
74
|
+
summary: messages.getMessage('flags.metadata-dir.summary'),
|
|
75
|
+
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
76
|
+
exists: true,
|
|
77
|
+
helpGroup: mdapiFormatFlags,
|
|
78
|
+
}),
|
|
79
|
+
'single-package': Flags.boolean({
|
|
80
|
+
summary: messages.getMessage('flags.single-package.summary'),
|
|
81
|
+
dependsOn: ['metadata-dir'],
|
|
82
|
+
helpGroup: mdapiFormatFlags,
|
|
83
|
+
}),
|
|
84
|
+
'target-org': Flags.requiredOrg({
|
|
85
|
+
char: 'o',
|
|
86
|
+
description: messages.getMessage('flags.target-org.description'),
|
|
87
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
88
|
+
required: true,
|
|
89
|
+
}),
|
|
90
|
+
tests: testsFlag({ helpGroup: testFlags }),
|
|
91
|
+
'test-level': testLevelFlag({
|
|
92
|
+
options: [TestLevel.RunAllTestsInOrg, TestLevel.RunLocalTests, TestLevel.RunSpecifiedTests],
|
|
93
|
+
default: TestLevel.RunLocalTests,
|
|
94
|
+
description: messages.getMessage('flags.test-level.description'),
|
|
95
|
+
summary: messages.getMessage('flags.test-level.summary'),
|
|
96
|
+
helpGroup: testFlags,
|
|
97
|
+
}),
|
|
98
|
+
verbose: Flags.boolean({
|
|
99
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
100
|
+
exclusive: ['concise'],
|
|
101
|
+
}),
|
|
102
|
+
wait: Flags.duration({
|
|
103
|
+
char: 'w',
|
|
104
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
105
|
+
description: messages.getMessage('flags.wait.description'),
|
|
106
|
+
unit: 'minutes',
|
|
107
|
+
default: Duration.minutes(33),
|
|
108
|
+
helpValue: '<minutes>',
|
|
109
|
+
min: 1,
|
|
110
|
+
}),
|
|
111
|
+
'ignore-warnings': Flags.boolean({
|
|
112
|
+
char: 'g',
|
|
113
|
+
summary: deployMessages.getMessage('flags.ignore-warnings.summary'),
|
|
114
|
+
description: deployMessages.getMessage('flags.ignore-warnings.description'),
|
|
115
|
+
default: false,
|
|
116
|
+
}),
|
|
117
|
+
'coverage-formatters': coverageFormattersFlag({ helpGroup: testFlags }),
|
|
118
|
+
junit: Flags.boolean({
|
|
119
|
+
summary: messages.getMessage('flags.junit.summary'),
|
|
120
|
+
helpGroup: testFlags,
|
|
121
|
+
}),
|
|
122
|
+
'results-dir': Flags.directory({
|
|
123
|
+
relationships: [{ type: 'some', flags: ['coverage-formatters', 'junit'] }],
|
|
124
|
+
summary: messages.getMessage('flags.results-dir.summary'),
|
|
125
|
+
helpGroup: testFlags,
|
|
126
|
+
}),
|
|
127
|
+
'purge-on-delete': Flags.boolean({
|
|
128
|
+
summary: messages.getMessage('flags.purge-on-delete.summary'),
|
|
129
|
+
dependsOn: ['manifest'],
|
|
130
|
+
relationships: [{ type: 'some', flags: ['pre-destructive-changes', 'post-destructive-changes'] }],
|
|
131
|
+
helpGroup: destructiveFlags,
|
|
132
|
+
}),
|
|
133
|
+
'pre-destructive-changes': Flags.file({
|
|
134
|
+
summary: messages.getMessage('flags.pre-destructive-changes.summary'),
|
|
135
|
+
dependsOn: ['manifest'],
|
|
136
|
+
helpGroup: destructiveFlags,
|
|
137
|
+
}),
|
|
138
|
+
'post-destructive-changes': Flags.file({
|
|
139
|
+
summary: messages.getMessage('flags.post-destructive-changes.summary'),
|
|
140
|
+
dependsOn: ['manifest'],
|
|
141
|
+
helpGroup: destructiveFlags,
|
|
142
|
+
}),
|
|
143
|
+
};
|
|
144
|
+
static configurationVariablesSection = toHelpSection('CONFIGURATION VARIABLES', OrgConfigProperties.TARGET_ORG, OrgConfigProperties.ORG_API_VERSION, ConfigVars.ORG_METADATA_REST_DEPLOY);
|
|
145
|
+
static envVariablesSection = toHelpSection('ENVIRONMENT VARIABLES', EnvironmentVariable.SF_TARGET_ORG, EnvironmentVariable.SF_USE_PROGRESS_BAR);
|
|
146
|
+
static errorCodes = toHelpSection('ERROR CODES', DEPLOY_STATUS_CODES_DESCRIPTIONS);
|
|
33
147
|
async run() {
|
|
34
|
-
const [{ flags }, api] = await Promise.all([this.parse(DeployMetadataValidate),
|
|
35
|
-
if (!
|
|
148
|
+
const [{ flags }, api] = await Promise.all([this.parse(DeployMetadataValidate), resolveApi(this.configAggregator)]);
|
|
149
|
+
if (!validateTests(flags['test-level'], flags.tests)) {
|
|
36
150
|
throw messages.createError('error.NoTestsSpecified');
|
|
37
151
|
}
|
|
38
152
|
const username = flags['target-org'].getUsername();
|
|
39
153
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
40
|
-
|
|
154
|
+
Lifecycle.getInstance().on('apiVersionDeploy', async (apiData) => {
|
|
41
155
|
this.log(deployMessages.getMessage('apiVersionMsgDetailed', [
|
|
42
156
|
'Validating Deployment of',
|
|
43
157
|
flags['metadata-dir'] ? '<version specified in manifest>' : `v${apiData.manifestVersion}`,
|
|
@@ -46,7 +160,7 @@ class DeployMetadataValidate extends sf_plugins_core_1.SfCommand {
|
|
|
46
160
|
apiData.webService,
|
|
47
161
|
]));
|
|
48
162
|
});
|
|
49
|
-
const { deploy } = await
|
|
163
|
+
const { deploy } = await executeDeploy({
|
|
50
164
|
...flags,
|
|
51
165
|
'ignore-conflicts': true,
|
|
52
166
|
'dry-run': true,
|
|
@@ -54,23 +168,25 @@ class DeployMetadataValidate extends sf_plugins_core_1.SfCommand {
|
|
|
54
168
|
api,
|
|
55
169
|
}, this.config.bin, this.project, undefined, true);
|
|
56
170
|
if (!deploy.id) {
|
|
57
|
-
throw new
|
|
171
|
+
throw new SfError('The deploy id is not available.');
|
|
58
172
|
}
|
|
59
|
-
this.log(`Deploy ID: ${
|
|
173
|
+
this.log(`Deploy ID: ${chalk.bold(deploy.id)}`);
|
|
60
174
|
if (flags.async) {
|
|
61
|
-
const asyncFormatter = new
|
|
175
|
+
const asyncFormatter = new AsyncDeployResultFormatter(deploy.id, this.config.bin);
|
|
62
176
|
if (!this.jsonEnabled())
|
|
63
177
|
asyncFormatter.display();
|
|
64
178
|
return asyncFormatter.getJson();
|
|
65
179
|
}
|
|
66
|
-
new
|
|
180
|
+
new DeployProgress(deploy, this.jsonEnabled()).start();
|
|
67
181
|
const result = await deploy.pollStatus(500, flags.wait?.seconds);
|
|
68
|
-
process.exitCode =
|
|
69
|
-
const formatter = new
|
|
182
|
+
process.exitCode = determineExitCode(result);
|
|
183
|
+
const formatter = new DeployResultFormatter(result, {
|
|
184
|
+
...flags,
|
|
185
|
+
});
|
|
70
186
|
if (!this.jsonEnabled()) {
|
|
71
187
|
formatter.display();
|
|
72
188
|
}
|
|
73
|
-
if (result.response.status ===
|
|
189
|
+
if (result.response.status === RequestStatus.Succeeded) {
|
|
74
190
|
this.log();
|
|
75
191
|
this.logSuccess(messages.getMessage('info.SuccessfulValidation', [deploy.id]));
|
|
76
192
|
this.log(messages.getMessage('info.suggestedQuickDeploy', [this.config.bin, deploy.id]));
|
|
@@ -81,7 +197,7 @@ class DeployMetadataValidate extends sf_plugins_core_1.SfCommand {
|
|
|
81
197
|
deploy.id,
|
|
82
198
|
[
|
|
83
199
|
// I think the type might be wrong in SDR
|
|
84
|
-
...
|
|
200
|
+
...ensureArray(result.response.details.runTestResult?.codeCoverageWarnings).map((warning) => `${warning.name ? `${warning.name} - ` : ''}${warning.message}`),
|
|
85
201
|
result.response.errorMessage,
|
|
86
202
|
result.response.numberComponentErrors ? `${result.response.numberComponentErrors} component error(s)` : '',
|
|
87
203
|
]
|
|
@@ -93,120 +209,4 @@ class DeployMetadataValidate extends sf_plugins_core_1.SfCommand {
|
|
|
93
209
|
return formatter.getJson();
|
|
94
210
|
}
|
|
95
211
|
}
|
|
96
|
-
DeployMetadataValidate.description = messages.getMessage('description');
|
|
97
|
-
DeployMetadataValidate.summary = messages.getMessage('summary');
|
|
98
|
-
DeployMetadataValidate.examples = messages.getMessages('examples');
|
|
99
|
-
DeployMetadataValidate.aliases = ['deploy:metadata:validate'];
|
|
100
|
-
DeployMetadataValidate.deprecateAliases = true;
|
|
101
|
-
DeployMetadataValidate.flags = {
|
|
102
|
-
'api-version': sf_plugins_core_1.Flags.orgApiVersion({
|
|
103
|
-
char: 'a',
|
|
104
|
-
summary: messages.getMessage('flags.api-version.summary'),
|
|
105
|
-
description: messages.getMessage('flags.api-version.description'),
|
|
106
|
-
}),
|
|
107
|
-
async: sf_plugins_core_1.Flags.boolean({
|
|
108
|
-
summary: messages.getMessage('flags.async.summary'),
|
|
109
|
-
description: messages.getMessage('flags.async.description'),
|
|
110
|
-
}),
|
|
111
|
-
concise: sf_plugins_core_1.Flags.boolean({
|
|
112
|
-
summary: messages.getMessage('flags.concise.summary'),
|
|
113
|
-
exclusive: ['verbose'],
|
|
114
|
-
}),
|
|
115
|
-
manifest: sf_plugins_core_1.Flags.file({
|
|
116
|
-
char: 'x',
|
|
117
|
-
description: messages.getMessage('flags.manifest.description'),
|
|
118
|
-
summary: messages.getMessage('flags.manifest.summary'),
|
|
119
|
-
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
120
|
-
helpGroup: sourceFormatFlags,
|
|
121
|
-
}),
|
|
122
|
-
metadata: sf_plugins_core_1.Flags.string({
|
|
123
|
-
char: 'm',
|
|
124
|
-
summary: messages.getMessage('flags.metadata.summary'),
|
|
125
|
-
multiple: true,
|
|
126
|
-
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
127
|
-
helpGroup: sourceFormatFlags,
|
|
128
|
-
}),
|
|
129
|
-
'source-dir': sf_plugins_core_1.Flags.string({
|
|
130
|
-
char: 'd',
|
|
131
|
-
description: messages.getMessage('flags.source-dir.description'),
|
|
132
|
-
summary: messages.getMessage('flags.source-dir.summary'),
|
|
133
|
-
multiple: true,
|
|
134
|
-
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
135
|
-
helpGroup: sourceFormatFlags,
|
|
136
|
-
}),
|
|
137
|
-
'metadata-dir': (0, flags_1.fileOrDirFlag)({
|
|
138
|
-
summary: messages.getMessage('flags.metadata-dir.summary'),
|
|
139
|
-
exactlyOne: EXACTLY_ONE_FLAGS,
|
|
140
|
-
exists: true,
|
|
141
|
-
helpGroup: mdapiFormatFlags,
|
|
142
|
-
}),
|
|
143
|
-
'single-package': sf_plugins_core_1.Flags.boolean({
|
|
144
|
-
summary: messages.getMessage('flags.single-package.summary'),
|
|
145
|
-
dependsOn: ['metadata-dir'],
|
|
146
|
-
helpGroup: mdapiFormatFlags,
|
|
147
|
-
}),
|
|
148
|
-
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
149
|
-
char: 'o',
|
|
150
|
-
description: messages.getMessage('flags.target-org.description'),
|
|
151
|
-
summary: messages.getMessage('flags.target-org.summary'),
|
|
152
|
-
required: true,
|
|
153
|
-
}),
|
|
154
|
-
tests: { ...flags_1.testsFlag, helpGroup: testFlags },
|
|
155
|
-
'test-level': (0, flags_1.testLevelFlag)({
|
|
156
|
-
options: [types_1.TestLevel.RunAllTestsInOrg, types_1.TestLevel.RunLocalTests, types_1.TestLevel.RunSpecifiedTests],
|
|
157
|
-
default: types_1.TestLevel.RunLocalTests,
|
|
158
|
-
description: messages.getMessage('flags.test-level.description'),
|
|
159
|
-
summary: messages.getMessage('flags.test-level.summary'),
|
|
160
|
-
helpGroup: testFlags,
|
|
161
|
-
}),
|
|
162
|
-
verbose: sf_plugins_core_1.Flags.boolean({
|
|
163
|
-
summary: messages.getMessage('flags.verbose.summary'),
|
|
164
|
-
exclusive: ['concise'],
|
|
165
|
-
}),
|
|
166
|
-
wait: sf_plugins_core_1.Flags.duration({
|
|
167
|
-
char: 'w',
|
|
168
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
169
|
-
description: messages.getMessage('flags.wait.description'),
|
|
170
|
-
unit: 'minutes',
|
|
171
|
-
default: kit_1.Duration.minutes(33),
|
|
172
|
-
helpValue: '<minutes>',
|
|
173
|
-
min: 1,
|
|
174
|
-
}),
|
|
175
|
-
'ignore-warnings': sf_plugins_core_1.Flags.boolean({
|
|
176
|
-
char: 'g',
|
|
177
|
-
summary: deployMessages.getMessage('flags.ignore-warnings.summary'),
|
|
178
|
-
description: deployMessages.getMessage('flags.ignore-warnings.description'),
|
|
179
|
-
default: false,
|
|
180
|
-
}),
|
|
181
|
-
'coverage-formatters': { ...flags_1.coverageFormattersFlag, helpGroup: testFlags },
|
|
182
|
-
junit: sf_plugins_core_1.Flags.boolean({
|
|
183
|
-
summary: messages.getMessage('flags.junit.summary'),
|
|
184
|
-
helpGroup: testFlags,
|
|
185
|
-
}),
|
|
186
|
-
'results-dir': sf_plugins_core_1.Flags.directory({
|
|
187
|
-
relationships: [{ type: 'some', flags: ['coverage-formatters', 'junit'] }],
|
|
188
|
-
summary: messages.getMessage('flags.results-dir.summary'),
|
|
189
|
-
helpGroup: testFlags,
|
|
190
|
-
}),
|
|
191
|
-
'purge-on-delete': sf_plugins_core_1.Flags.boolean({
|
|
192
|
-
summary: messages.getMessage('flags.purge-on-delete.summary'),
|
|
193
|
-
dependsOn: ['manifest'],
|
|
194
|
-
relationships: [{ type: 'some', flags: ['pre-destructive-changes', 'post-destructive-changes'] }],
|
|
195
|
-
helpGroup: destructiveFlags,
|
|
196
|
-
}),
|
|
197
|
-
'pre-destructive-changes': sf_plugins_core_1.Flags.file({
|
|
198
|
-
summary: messages.getMessage('flags.pre-destructive-changes.summary'),
|
|
199
|
-
dependsOn: ['manifest'],
|
|
200
|
-
helpGroup: destructiveFlags,
|
|
201
|
-
}),
|
|
202
|
-
'post-destructive-changes': sf_plugins_core_1.Flags.file({
|
|
203
|
-
summary: messages.getMessage('flags.post-destructive-changes.summary'),
|
|
204
|
-
dependsOn: ['manifest'],
|
|
205
|
-
helpGroup: destructiveFlags,
|
|
206
|
-
}),
|
|
207
|
-
};
|
|
208
|
-
DeployMetadataValidate.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES', core_1.OrgConfigProperties.TARGET_ORG, core_1.OrgConfigProperties.ORG_API_VERSION, configMeta_1.ConfigVars.ORG_METADATA_REST_DEPLOY);
|
|
209
|
-
DeployMetadataValidate.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES', core_1.EnvironmentVariable.SF_TARGET_ORG, core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR);
|
|
210
|
-
DeployMetadataValidate.errorCodes = (0, sf_plugins_core_1.toHelpSection)('ERROR CODES', errorCodes_1.DEPLOY_STATUS_CODES_DESCRIPTIONS);
|
|
211
|
-
exports.default = DeployMetadataValidate;
|
|
212
212
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/validate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/validate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAA2C,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAoB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aA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AAM,KAAK,aAAa,CAAC,SAAS,EAAE;YACtD,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC/E,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SAC1F;aAAM;YACL,MAAM,QAAQ;iBACX,WAAW,CAAC,wBAAwB,EAAE;gBACrC,MAAM,CAAC,EAAE;gBACT;oBACE,yCAAyC;oBACzC,GAAG,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC,GAAG,CAC7E,CAAC,OAAiD,EAAE,EAAE,CACpD,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAClE;oBACD,MAAM,CAAC,QAAQ,CAAC,YAAY;oBAC5B,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC,EAAE;iBAC3G;qBACE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;qBACZ,IAAI,EAAE;aACV,CAAC;iBACD,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;SACrC;QAED,OAAO,SAAS,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC"}
|
|
@@ -12,15 +12,15 @@ export declare class ManifestGenerate extends SfCommand<ManifestGenerateCommandR
|
|
|
12
12
|
static readonly deprecateAliases = true;
|
|
13
13
|
static readonly requiresProject = true;
|
|
14
14
|
static readonly flags: {
|
|
15
|
-
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
|
-
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]
|
|
18
|
-
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]
|
|
19
|
-
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
|
-
type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
21
|
-
'include-packages': import("@oclif/core/lib/interfaces").OptionFlag<string[]
|
|
22
|
-
'from-org': import("@oclif/core/lib/interfaces").OptionFlag<Org | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
23
|
-
'output-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
+
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
17
|
+
metadata: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
18
|
+
'source-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
19
|
+
name: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
|
+
type: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
21
|
+
'include-packages': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
22
|
+
'from-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<Org | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
23
|
+
'output-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
24
24
|
};
|
|
25
25
|
run(): Promise<ManifestGenerateCommandResult>;
|
|
26
26
|
}
|