@salesforce/plugin-packaging 0.0.1 → 1.2.0
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/CHANGELOG.md +31 -1
- package/README.md +732 -14
- package/lib/commands/force/package/beta/convert.d.ts +13 -0
- package/lib/commands/force/package/beta/convert.js +61 -0
- package/lib/commands/force/package/beta/convert.js.map +1 -0
- package/lib/commands/force/package/beta/create.d.ts +15 -0
- package/lib/commands/force/package/beta/create.js +87 -0
- package/lib/commands/force/package/beta/create.js.map +1 -0
- package/lib/commands/force/package/beta/delete.d.ts +14 -0
- package/lib/commands/force/package/beta/delete.js +61 -0
- package/lib/commands/force/package/beta/delete.js.map +1 -0
- package/lib/commands/force/package/beta/install/report.d.ts +15 -0
- package/lib/commands/force/package/beta/install/report.js +66 -0
- package/lib/commands/force/package/beta/install/report.js.map +1 -0
- package/lib/commands/force/package/beta/install.d.ts +22 -0
- package/lib/commands/force/package/beta/install.js +228 -0
- package/lib/commands/force/package/beta/install.js.map +1 -0
- package/lib/commands/force/package/beta/installed/list.d.ts +17 -0
- package/lib/commands/force/package/beta/installed/list.js +46 -0
- package/lib/commands/force/package/beta/installed/list.js.map +1 -0
- package/lib/commands/force/package/beta/list.d.ts +21 -0
- package/lib/commands/force/package/beta/list.js +90 -0
- package/lib/commands/force/package/beta/list.js.map +1 -0
- package/lib/commands/force/package/beta/uninstall/report.d.ts +10 -0
- package/lib/commands/force/package/beta/uninstall/report.js +33 -0
- package/lib/commands/force/package/beta/uninstall/report.js.map +1 -0
- package/lib/commands/force/package/beta/uninstall.d.ts +12 -0
- package/lib/commands/force/package/beta/uninstall.js +52 -0
- package/lib/commands/force/package/beta/uninstall.js.map +1 -0
- package/lib/commands/force/package/beta/update.d.ts +12 -0
- package/lib/commands/force/package/beta/update.js +51 -0
- package/lib/commands/force/package/beta/update.js.map +1 -0
- package/lib/commands/force/package/beta/version/create/list.d.ts +12 -0
- package/lib/commands/force/package/beta/version/create/list.js +40 -0
- package/lib/commands/force/package/beta/version/create/list.js.map +1 -0
- package/lib/commands/force/package/beta/version/create/report.d.ts +12 -0
- package/lib/commands/force/package/beta/version/create/report.js +87 -0
- package/lib/commands/force/package/beta/version/create/report.js.map +1 -0
- package/lib/commands/force/package/beta/version/create.d.ts +12 -0
- package/lib/commands/force/package/beta/version/create.js +136 -0
- package/lib/commands/force/package/beta/version/create.js.map +1 -0
- package/lib/commands/force/package/beta/version/delete.d.ts +15 -0
- package/lib/commands/force/package/beta/version/delete.js +64 -0
- package/lib/commands/force/package/beta/version/delete.js.map +1 -0
- package/lib/commands/force/package/beta/version/displayancestry.d.ts +13 -0
- package/lib/commands/force/package/beta/version/displayancestry.js +46 -0
- package/lib/commands/force/package/beta/version/displayancestry.js.map +1 -0
- package/lib/commands/force/package/beta/version/list.d.ts +12 -0
- package/lib/commands/force/package/beta/version/list.js +62 -0
- package/lib/commands/force/package/beta/version/list.js.map +1 -0
- package/lib/commands/force/package/beta/version/promote.d.ts +12 -0
- package/lib/commands/force/package/beta/version/promote.js +40 -0
- package/lib/commands/force/package/beta/version/promote.js.map +1 -0
- package/lib/commands/force/package/beta/version/report.d.ts +24 -0
- package/lib/commands/force/package/beta/version/report.js +209 -0
- package/lib/commands/force/package/beta/version/report.js.map +1 -0
- package/lib/commands/force/package/beta/version/update.d.ts +12 -0
- package/lib/commands/force/package/beta/version/update.js +60 -0
- package/lib/commands/force/package/beta/version/update.js.map +1 -0
- package/lib/commands/force/package1/beta/version/create/get.d.ts +9 -0
- package/lib/commands/force/package1/beta/version/create/get.js +48 -0
- package/lib/commands/force/package1/beta/version/create/get.js.map +1 -0
- package/lib/commands/force/package1/beta/version/create.d.ts +14 -0
- package/lib/commands/force/package1/beta/version/create.js +116 -0
- package/lib/commands/force/package1/beta/version/create.js.map +1 -0
- package/lib/commands/force/package1/beta/version/display.d.ts +9 -0
- package/lib/commands/force/package1/beta/version/display.js +55 -0
- package/lib/commands/force/package1/beta/version/display.js.map +1 -0
- package/lib/commands/force/package1/beta/version/list.d.ts +10 -0
- package/lib/commands/force/package1/beta/version/list.js +54 -0
- package/lib/commands/force/package1/beta/version/list.js.map +1 -0
- package/messages/default.md +1127 -0
- package/messages/package1_version_create.md +128 -0
- package/messages/package1_version_create_get.md +31 -0
- package/messages/package1_version_display.md +19 -0
- package/messages/package1_version_list.md +31 -0
- package/messages/package2.md +87 -0
- package/messages/package2_create.md +56 -0
- package/messages/package2_list.md +35 -0
- package/messages/package2_update.md +45 -0
- package/messages/package2_version_create.md +149 -0
- package/messages/package2_version_create_get.md +34 -0
- package/messages/package2_version_create_list.md +62 -0
- package/messages/package2_version_get.md +14 -0
- package/messages/package2_version_list.md +98 -0
- package/messages/package2_version_update.md +89 -0
- package/messages/package_convert.md +72 -0
- package/messages/package_create.md +90 -0
- package/messages/package_delete.md +63 -0
- package/messages/package_displayancestry.md +64 -0
- package/messages/package_install.md +178 -0
- package/messages/package_install_get.md +34 -0
- package/messages/package_install_report.md +34 -0
- package/messages/package_install_request.md +34 -0
- package/messages/package_installed_list.md +16 -0
- package/messages/package_list.md +67 -0
- package/messages/package_uninstall.md +73 -0
- package/messages/package_uninstall_get.md +34 -0
- package/messages/package_uninstall_report.md +34 -0
- package/messages/package_update.md +45 -0
- package/messages/package_version_create.md +301 -0
- package/messages/package_version_create_list.md +62 -0
- package/messages/package_version_create_report.md +35 -0
- package/messages/package_version_delete.md +63 -0
- package/messages/package_version_list.md +135 -0
- package/messages/package_version_promote.md +50 -0
- package/messages/package_version_report.md +51 -0
- package/messages/package_version_update.md +74 -0
- package/messages/packaging.md +157 -0
- package/oclif.manifest.json +1 -1
- package/package.json +68 -15
- package/lib/commands/force/package/placeholder.d.ts +0 -6
- package/lib/commands/force/package/placeholder.js +0 -18
- package/lib/commands/force/package/placeholder.js.map +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageVersionCreateCommand = void 0;
|
|
10
|
+
const command_1 = require("@salesforce/command");
|
|
11
|
+
const kit_1 = require("@salesforce/kit");
|
|
12
|
+
const core_1 = require("@salesforce/core");
|
|
13
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_create');
|
|
15
|
+
class PackageVersionCreateCommand extends command_1.SfdxCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
return Promise.resolve('Not yet implemented');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.PackageVersionCreateCommand = PackageVersionCreateCommand;
|
|
22
|
+
PackageVersionCreateCommand.description = messages.getMessage('cliDescription');
|
|
23
|
+
PackageVersionCreateCommand.longDescription = messages.getMessage('cliLongDescription');
|
|
24
|
+
PackageVersionCreateCommand.help = messages.getMessage('help');
|
|
25
|
+
PackageVersionCreateCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
26
|
+
PackageVersionCreateCommand.requiresDevhubUsername = true;
|
|
27
|
+
PackageVersionCreateCommand.requiresProject = true;
|
|
28
|
+
PackageVersionCreateCommand.flagsConfig = {
|
|
29
|
+
package: command_1.flags.string({
|
|
30
|
+
char: 'p',
|
|
31
|
+
description: messages.getMessage('package'),
|
|
32
|
+
longDescription: messages.getMessage('longPackage', []),
|
|
33
|
+
}),
|
|
34
|
+
path: command_1.flags.directory({
|
|
35
|
+
char: 'd',
|
|
36
|
+
description: messages.getMessage('path'),
|
|
37
|
+
longDescription: messages.getMessage('longPath'),
|
|
38
|
+
}),
|
|
39
|
+
definitionfile: command_1.flags.filepath({
|
|
40
|
+
char: 'f',
|
|
41
|
+
description: messages.getMessage('definitionfile'),
|
|
42
|
+
longDescription: messages.getMessage('longDefinitionfile'),
|
|
43
|
+
}),
|
|
44
|
+
branch: command_1.flags.string({
|
|
45
|
+
char: 'b',
|
|
46
|
+
description: messages.getMessage('branch'),
|
|
47
|
+
longDescription: messages.getMessage('longBranch'),
|
|
48
|
+
}),
|
|
49
|
+
tag: command_1.flags.string({
|
|
50
|
+
char: 't',
|
|
51
|
+
description: messages.getMessage('tag'),
|
|
52
|
+
longDescription: messages.getMessage('longTag'),
|
|
53
|
+
}),
|
|
54
|
+
installationkey: command_1.flags.string({
|
|
55
|
+
char: 'k',
|
|
56
|
+
description: messages.getMessage('key'),
|
|
57
|
+
longDescription: messages.getMessage('longKey'),
|
|
58
|
+
}),
|
|
59
|
+
installationkeybypass: command_1.flags.boolean({
|
|
60
|
+
char: 'x',
|
|
61
|
+
description: messages.getMessage('keyBypass'),
|
|
62
|
+
longDescription: messages.getMessage('longKeyBypass'),
|
|
63
|
+
}),
|
|
64
|
+
preserve: command_1.flags.boolean({
|
|
65
|
+
char: 'r',
|
|
66
|
+
description: messages.getMessage('preserve'),
|
|
67
|
+
longDescription: messages.getMessage('longPreserve'),
|
|
68
|
+
hidden: true,
|
|
69
|
+
}),
|
|
70
|
+
validateschema: command_1.flags.boolean({
|
|
71
|
+
char: 'j',
|
|
72
|
+
description: messages.getMessage('validateschema'),
|
|
73
|
+
longDescription: messages.getMessage('longValidateschema'),
|
|
74
|
+
hidden: true,
|
|
75
|
+
}),
|
|
76
|
+
wait: command_1.flags.minutes({
|
|
77
|
+
char: 'w',
|
|
78
|
+
description: messages.getMessage('wait'),
|
|
79
|
+
longDescription: messages.getMessage('longWait'),
|
|
80
|
+
default: kit_1.Duration.minutes(0),
|
|
81
|
+
}),
|
|
82
|
+
buildinstance: command_1.flags.string({
|
|
83
|
+
char: 's',
|
|
84
|
+
description: messages.getMessage('instance'),
|
|
85
|
+
longDescription: messages.getMessage('longInstance'),
|
|
86
|
+
hidden: true,
|
|
87
|
+
}),
|
|
88
|
+
versionname: command_1.flags.string({
|
|
89
|
+
char: 'a',
|
|
90
|
+
description: messages.getMessage('versionname'),
|
|
91
|
+
longDescription: messages.getMessage('longVersionname'),
|
|
92
|
+
}),
|
|
93
|
+
versionnumber: command_1.flags.string({
|
|
94
|
+
char: 'n',
|
|
95
|
+
description: messages.getMessage('versionnumber'),
|
|
96
|
+
longDescription: messages.getMessage('longVersionnumber'),
|
|
97
|
+
}),
|
|
98
|
+
versiondescription: command_1.flags.string({
|
|
99
|
+
char: 'e',
|
|
100
|
+
description: messages.getMessage('versiondescription'),
|
|
101
|
+
longDescription: messages.getMessage('longVersiondescription'),
|
|
102
|
+
}),
|
|
103
|
+
codecoverage: command_1.flags.boolean({
|
|
104
|
+
char: 'c',
|
|
105
|
+
description: messages.getMessage('codeCoverage'),
|
|
106
|
+
longDescription: messages.getMessage('longCodeCoverage'),
|
|
107
|
+
default: false,
|
|
108
|
+
}),
|
|
109
|
+
releasenotesurl: command_1.flags.url({
|
|
110
|
+
description: messages.getMessage('releaseNotesUrl'),
|
|
111
|
+
longDescription: messages.getMessage('releaseNotesUrlLong'),
|
|
112
|
+
}),
|
|
113
|
+
postinstallurl: command_1.flags.url({
|
|
114
|
+
description: messages.getMessage('postInstallUrl'),
|
|
115
|
+
longDescription: messages.getMessage('postInstallUrlLong'),
|
|
116
|
+
}),
|
|
117
|
+
postinstallscript: command_1.flags.string({
|
|
118
|
+
description: messages.getMessage('postInstallScript'),
|
|
119
|
+
longDescription: messages.getMessage('postInstallScriptLong'),
|
|
120
|
+
}),
|
|
121
|
+
uninstallscript: command_1.flags.string({
|
|
122
|
+
description: messages.getMessage('uninstallScript'),
|
|
123
|
+
longDescription: messages.getMessage('uninstallScriptLong'),
|
|
124
|
+
}),
|
|
125
|
+
skipvalidation: command_1.flags.boolean({
|
|
126
|
+
description: messages.getMessage('skipValidation'),
|
|
127
|
+
longDescription: messages.getMessage('skipValidationLong'),
|
|
128
|
+
default: false,
|
|
129
|
+
}),
|
|
130
|
+
skipancestorcheck: command_1.flags.boolean({
|
|
131
|
+
description: messages.getMessage('skipAncestorCheck'),
|
|
132
|
+
longDescription: messages.getMessage('skipAncestorCheckLong'),
|
|
133
|
+
default: false,
|
|
134
|
+
}),
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,yCAA2C;AAC3C,2CAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;AAEjG,MAAa,2BAA4B,SAAQ,qBAAW;IAoHnD,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AAvHH,kEAwHC;AAvHwB,uCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,2CAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,gCAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACnC,mCAAO,GAAG,uBAAgB,CAAC,wBAAwB,CAAC;AACpD,kDAAsB,GAAG,IAAI,CAAC;AAC9B,2CAAe,GAAG,IAAI,CAAC;AACvB,uCAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,Q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BAAoB,CAAC;QAC1D,OAAO,EAAE,KAAK;KACf,CAAC;IACF,iBAAiB,EAAE,eAAK,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACrD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;QAC7D,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { OrgConfigProperties } from '@salesforce/core';
|
|
3
|
+
import { PackageSaveResult } from '@salesforce/packaging';
|
|
4
|
+
export declare class PackageVersionDeleteCommand extends SfdxCommand {
|
|
5
|
+
static readonly description: string;
|
|
6
|
+
static readonly longDescription: string;
|
|
7
|
+
static readonly help: string;
|
|
8
|
+
static readonly orgType = OrgConfigProperties.TARGET_DEV_HUB;
|
|
9
|
+
static readonly requiresDevhubUsername = true;
|
|
10
|
+
static readonly requiresProject = true;
|
|
11
|
+
static readonly flagsConfig: FlagsConfig;
|
|
12
|
+
run(): Promise<PackageSaveResult>;
|
|
13
|
+
private confirmDelete;
|
|
14
|
+
private getHumanSuccessMessage;
|
|
15
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageVersionDeleteCommand = void 0;
|
|
10
|
+
const command_1 = require("@salesforce/command");
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
const packaging_1 = require("@salesforce/packaging");
|
|
13
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_delete');
|
|
15
|
+
class PackageVersionDeleteCommand extends command_1.SfdxCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
const packageVersion = new packaging_1.PackageVersion({ project: this.project, connection: this.hubOrg.getConnection() });
|
|
18
|
+
await this.confirmDelete();
|
|
19
|
+
const results = this.flags.undelete
|
|
20
|
+
? await packageVersion.undelete(this.flags.package)
|
|
21
|
+
: await packageVersion.delete(this.flags.package);
|
|
22
|
+
this.ux.log(this.getHumanSuccessMessage(results));
|
|
23
|
+
return results;
|
|
24
|
+
}
|
|
25
|
+
async confirmDelete() {
|
|
26
|
+
if (this.flags.noprompt || this.flags.json) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
const message = this.flags.undelete ? messages.getMessage('promptUndelete') : messages.getMessage('promptDelete');
|
|
30
|
+
const accepted = await this.ux.confirm(message);
|
|
31
|
+
if (!accepted) {
|
|
32
|
+
throw new Error(messages.getMessage('promptDeleteDeny'));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
getHumanSuccessMessage(result) {
|
|
36
|
+
return messages.getMessage(this.flags.undelete ? 'humanSuccessUndelete' : 'humanSuccess', [result.id]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.PackageVersionDeleteCommand = PackageVersionDeleteCommand;
|
|
40
|
+
PackageVersionDeleteCommand.description = messages.getMessage('cliDescription');
|
|
41
|
+
PackageVersionDeleteCommand.longDescription = messages.getMessage('cliLongDescription');
|
|
42
|
+
PackageVersionDeleteCommand.help = messages.getMessage('help', []);
|
|
43
|
+
PackageVersionDeleteCommand.orgType = core_1.OrgConfigProperties.TARGET_DEV_HUB;
|
|
44
|
+
PackageVersionDeleteCommand.requiresDevhubUsername = true;
|
|
45
|
+
PackageVersionDeleteCommand.requiresProject = true;
|
|
46
|
+
PackageVersionDeleteCommand.flagsConfig = {
|
|
47
|
+
noprompt: command_1.flags.boolean({
|
|
48
|
+
char: 'n',
|
|
49
|
+
description: messages.getMessage('noPrompt'),
|
|
50
|
+
longDescription: messages.getMessage('noPrompt'),
|
|
51
|
+
}),
|
|
52
|
+
package: command_1.flags.string({
|
|
53
|
+
char: 'p',
|
|
54
|
+
description: messages.getMessage('package'),
|
|
55
|
+
longDescription: messages.getMessage('packageLong'),
|
|
56
|
+
required: true,
|
|
57
|
+
}),
|
|
58
|
+
undelete: command_1.flags.boolean({
|
|
59
|
+
description: messages.getMessage('undelete'),
|
|
60
|
+
longDescription: messages.getMessage('undeleteLong'),
|
|
61
|
+
hidden: true,
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/delete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAAiE;AACjE,qDAA0E;AAE1E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;AAEjG,MAAa,2BAA4B,SAAQ,qBAAW;IA0BnD,KAAK,CAAC,GAAG;QACd,MAAM,cAAc,GAAG,IAAI,0BAAc,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC9G,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;YACjC,CAAC,CAAC,MAAM,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YACnD,CAAC,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,C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AAW,GAAgB;IAChD,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;KACjD,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;QACpD,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { SfdxPropertyKeys } from '@salesforce/core';
|
|
3
|
+
export declare class PackageVersionDisplayAncestryCommand extends SfdxCommand {
|
|
4
|
+
static readonly description: string;
|
|
5
|
+
static readonly longDescription: string;
|
|
6
|
+
static readonly help: string;
|
|
7
|
+
static readonly showProgress = false;
|
|
8
|
+
static readonly varargs = false;
|
|
9
|
+
static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
10
|
+
static readonly requiresDevhubUsername = true;
|
|
11
|
+
static readonly flagsConfig: FlagsConfig;
|
|
12
|
+
run(): Promise<unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageVersionDisplayAncestryCommand = void 0;
|
|
10
|
+
const command_1 = require("@salesforce/command");
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
// Import i18n messages
|
|
13
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_displayancestry');
|
|
15
|
+
class PackageVersionDisplayAncestryCommand extends command_1.SfdxCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
return Promise.resolve('Not yet implemented');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.PackageVersionDisplayAncestryCommand = PackageVersionDisplayAncestryCommand;
|
|
22
|
+
PackageVersionDisplayAncestryCommand.description = messages.getMessage('cliDescription');
|
|
23
|
+
PackageVersionDisplayAncestryCommand.longDescription = messages.getMessage('cliDescriptionLong');
|
|
24
|
+
PackageVersionDisplayAncestryCommand.help = messages.getMessage('help');
|
|
25
|
+
PackageVersionDisplayAncestryCommand.showProgress = false;
|
|
26
|
+
PackageVersionDisplayAncestryCommand.varargs = false;
|
|
27
|
+
PackageVersionDisplayAncestryCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
28
|
+
PackageVersionDisplayAncestryCommand.requiresDevhubUsername = true;
|
|
29
|
+
PackageVersionDisplayAncestryCommand.flagsConfig = {
|
|
30
|
+
// --json is configured automatically
|
|
31
|
+
package: command_1.flags.string({
|
|
32
|
+
char: 'p',
|
|
33
|
+
description: messages.getMessage('package'),
|
|
34
|
+
longDescription: messages.getMessage('packageLong'),
|
|
35
|
+
required: true,
|
|
36
|
+
}),
|
|
37
|
+
dotcode: command_1.flags.boolean({
|
|
38
|
+
description: messages.getMessage('dotcode'),
|
|
39
|
+
longDescription: messages.getMessage('dotcodeLong'),
|
|
40
|
+
}),
|
|
41
|
+
verbose: command_1.flags.builtin({
|
|
42
|
+
description: messages.getMessage('verbose'),
|
|
43
|
+
longDescription: messages.getMessage('verboseLong'),
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=displayancestry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"displayancestry.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/displayancestry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,uBAAuB;AACvB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,yBAAyB,CAAC,CAAC;AAElG,MAAa,oCAAqC,SAAQ,qBAAW;IA4B5D,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AA/BH,oFAgCC;AA/BwB,gDAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,oDAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,yCAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAEnC,iDAAY,GAAG,KAAK,CAAC;AACrB,4CAAO,GAAG,KAAK,CAAC;AAChB,4CAAO,GAAG,uBAAgB,CAAC,wBAAwB,CAAC;AACpD,2DAAsB,GAAG,IAAI,CAAC;AAE9B,gDAAW,GAAgB;IAChD,qCAAqC;IACrC,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KACpD,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KACpD,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { SfdxPropertyKeys } from '@salesforce/core';
|
|
3
|
+
export declare class PackageVersionListCommand extends SfdxCommand {
|
|
4
|
+
static readonly description: string;
|
|
5
|
+
static readonly longDescription: string;
|
|
6
|
+
static readonly help: string;
|
|
7
|
+
static readonly: any;
|
|
8
|
+
static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
9
|
+
static readonly requiresDevhubUsername = true;
|
|
10
|
+
static readonly flagsConfig: FlagsConfig;
|
|
11
|
+
run(): Promise<unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageVersionListCommand = void 0;
|
|
10
|
+
const command_1 = require("@salesforce/command");
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
13
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_list');
|
|
14
|
+
const packaging = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'packaging');
|
|
15
|
+
class PackageVersionListCommand extends command_1.SfdxCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
return Promise.resolve('Not yet implemented');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.PackageVersionListCommand = PackageVersionListCommand;
|
|
22
|
+
PackageVersionListCommand.description = messages.getMessage('cliDescription');
|
|
23
|
+
PackageVersionListCommand.longDescription = messages.getMessage('cliLongDescription');
|
|
24
|
+
PackageVersionListCommand.help = messages.getMessage('help');
|
|
25
|
+
PackageVersionListCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
26
|
+
PackageVersionListCommand.requiresDevhubUsername = true;
|
|
27
|
+
PackageVersionListCommand.flagsConfig = {
|
|
28
|
+
createdlastdays: command_1.flags.number({
|
|
29
|
+
char: 'c',
|
|
30
|
+
description: packaging.getMessage('createdLastDaysDescription'),
|
|
31
|
+
longDescription: packaging.getMessage('createdLastDaysLongDescription'),
|
|
32
|
+
}),
|
|
33
|
+
concise: command_1.flags.builtin({
|
|
34
|
+
description: messages.getMessage('conciseDescription'),
|
|
35
|
+
longDescription: messages.getMessage('conciseLongDescription'),
|
|
36
|
+
}),
|
|
37
|
+
modifiedlastdays: command_1.flags.number({
|
|
38
|
+
char: 'm',
|
|
39
|
+
description: packaging.getMessage('modifiedLastDaysDescription'),
|
|
40
|
+
longDescription: packaging.getMessage('modifiedLastDaysLongDescription'),
|
|
41
|
+
}),
|
|
42
|
+
packages: command_1.flags.array({
|
|
43
|
+
char: 'p',
|
|
44
|
+
description: messages.getMessage('packagesDescription'),
|
|
45
|
+
longDescription: messages.getMessage('packagesLongDescription'),
|
|
46
|
+
}),
|
|
47
|
+
released: command_1.flags.boolean({
|
|
48
|
+
char: 'r',
|
|
49
|
+
description: messages.getMessage('releasedDescription'),
|
|
50
|
+
longDescription: messages.getMessage('releasedLongDescription'),
|
|
51
|
+
}),
|
|
52
|
+
orderby: command_1.flags.array({
|
|
53
|
+
char: 'o',
|
|
54
|
+
description: messages.getMessage('orderByDescription'),
|
|
55
|
+
longDescription: messages.getMessage('orderByLongDescription'),
|
|
56
|
+
}),
|
|
57
|
+
verbose: command_1.flags.builtin({
|
|
58
|
+
description: messages.getMessage('verboseDescription'),
|
|
59
|
+
longDescription: messages.getMessage('verboseLongDescription'),
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC;AAC/F,MAAM,SAAS,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,WAAW,CAAC,CAAC;AAErF,MAAa,yBAA0B,SAAQ,qBAAW;IA2CjD,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AA9CH,8DA+CC;AA9CwB,qCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,yCAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,8BAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,C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;KAC/D,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { SfdxPropertyKeys } from '@salesforce/core';
|
|
3
|
+
export declare class PackageVersionPromoteCommand extends SfdxCommand {
|
|
4
|
+
static readonly description: string;
|
|
5
|
+
static readonly longDescription: string;
|
|
6
|
+
static readonly help: string;
|
|
7
|
+
static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
8
|
+
static readonly requiresDevhubUsername = true;
|
|
9
|
+
static readonly requiresProject = true;
|
|
10
|
+
static readonly flagsConfig: FlagsConfig;
|
|
11
|
+
run(): Promise<unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageVersionPromoteCommand = void 0;
|
|
10
|
+
const command_1 = require("@salesforce/command");
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
13
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_promote');
|
|
14
|
+
class PackageVersionPromoteCommand extends command_1.SfdxCommand {
|
|
15
|
+
async run() {
|
|
16
|
+
process.exitCode = 1;
|
|
17
|
+
return Promise.resolve('Not yet implemented');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PackageVersionPromoteCommand = PackageVersionPromoteCommand;
|
|
21
|
+
PackageVersionPromoteCommand.description = messages.getMessage('cliDescription');
|
|
22
|
+
PackageVersionPromoteCommand.longDescription = messages.getMessage('cliDescriptionLong');
|
|
23
|
+
PackageVersionPromoteCommand.help = messages.getMessage('help');
|
|
24
|
+
PackageVersionPromoteCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
|
|
25
|
+
PackageVersionPromoteCommand.requiresDevhubUsername = true;
|
|
26
|
+
PackageVersionPromoteCommand.requiresProject = true;
|
|
27
|
+
PackageVersionPromoteCommand.flagsConfig = {
|
|
28
|
+
package: command_1.flags.string({
|
|
29
|
+
char: 'p',
|
|
30
|
+
description: messages.getMessage('package'),
|
|
31
|
+
longDescription: messages.getMessage('packageLong'),
|
|
32
|
+
required: true,
|
|
33
|
+
}),
|
|
34
|
+
noprompt: command_1.flags.boolean({
|
|
35
|
+
char: 'n',
|
|
36
|
+
description: messages.getMessage('setasreleasedForce'),
|
|
37
|
+
longDescription: messages.getMessage('setasreleasedForceLong'),
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=promote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promote.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/promote.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,yBAAyB,CAAC,CAAC;AAElG,MAAa,4BAA6B,SAAQ,qBAAW;IAqBpD,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AAxBH,oEAyBC;AAxBwB,wCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,4CAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,iCAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACnC,oCAAO,GAAG,uBAAgB,CAAC,wBAAwB,CAAC;AACpD,mDAAsB,GAAG,IAAI,CAAC;AAC9B,4CAAe,GAAG,IAAI,CAAC;AACvB,wCAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { OrgConfigProperties } from '@salesforce/core';
|
|
3
|
+
import { PackageVersionReportResult, PackagingSObjects } from '@salesforce/packaging';
|
|
4
|
+
export declare type PackageVersionReportResultModified = Omit<PackageVersionReportResult, 'CodeCoverage' | 'HasPassedCodeCoverageCheck' | 'Package2' | 'HasMetadataRemoved' | 'PackageType'> & {
|
|
5
|
+
CodeCoverage: string;
|
|
6
|
+
HasPassedCodeCoverageCheck: boolean | string;
|
|
7
|
+
Package2: Partial<Omit<PackagingSObjects.Package2, 'IsOrgDependent'> & {
|
|
8
|
+
IsOrgDependent: string;
|
|
9
|
+
}>;
|
|
10
|
+
HasMetadataRemoved: boolean | string;
|
|
11
|
+
};
|
|
12
|
+
export declare class PackageVersionReportCommand extends SfdxCommand {
|
|
13
|
+
static readonly description: string;
|
|
14
|
+
static readonly longDescription: string;
|
|
15
|
+
static readonly help: string;
|
|
16
|
+
static readonly orgType = OrgConfigProperties.TARGET_DEV_HUB;
|
|
17
|
+
static readonly requiresDevhubUsername = true;
|
|
18
|
+
static readonly requiresProject = true;
|
|
19
|
+
static readonly flagsConfig: FlagsConfig;
|
|
20
|
+
protected haveCodeCoverageData: boolean;
|
|
21
|
+
run(): Promise<PackageVersionReportResultModified>;
|
|
22
|
+
private display;
|
|
23
|
+
private massageResultsForDisplay;
|
|
24
|
+
}
|