@salesforce/test-plugin117 4.0.3 → 5.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/LICENSE.txt CHANGED
@@ -1,12 +1,206 @@
1
- Copyright (c) 2026, Salesforce.com, Inc.
1
+ Apache License Version 2.0
2
+
3
+ Copyright (c) 2026 Salesforce, Inc.
2
4
  All rights reserved.
3
5
 
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
+ Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ APPENDIX: How to apply the Apache License to your work.
184
+
185
+ To apply the Apache License to your work, attach the following
186
+ boilerplate notice, with the fields enclosed by brackets "{}"
187
+ replaced with your own identifying information. (Don't include
188
+ the brackets!) The text should be enclosed in the appropriate
189
+ comment syntax for the file format. We also recommend that a
190
+ file or class name and description of purpose be included on the
191
+ same "printed page" as the copyright notice for easier
192
+ identification within third-party archives.
5
193
 
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
194
+ Copyright {yyyy} {name of copyright owner}
7
195
 
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
196
+ Licensed under the Apache License, Version 2.0 (the "License");
197
+ you may not use this file except in compliance with the License.
198
+ You may obtain a copy of the License at
9
199
 
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
200
+ http://www.apache.org/licenses/LICENSE-2.0
11
201
 
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
202
+ Unless required by applicable law or agreed to in writing, software
203
+ distributed under the License is distributed on an "AS IS" BASIS,
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+ See the License for the specific language governing permissions and
206
+ limitations under the License.
package/README.md CHANGED
@@ -12,17 +12,18 @@ foo39
12
12
 
13
13
  <!-- toc -->
14
14
 
15
+ - [testPlugin117](#testplugin117)
15
16
  - [Debugging your plugin](#debugging-your-plugin)
16
17
  <!-- tocstop -->
17
- <!-- install -->
18
- <!-- usage -->
18
+ <!-- install -->
19
+ <!-- usage -->
19
20
 
20
21
  ```sh-session
21
22
  $ npm install -g @salesforce/test-plugin117
22
23
  $ sfdx COMMAND
23
24
  running command...
24
25
  $ sfdx (--version)
25
- @salesforce/test-plugin117/1.5.3 darwin-x64 node-v16.13.2
26
+ @salesforce/test-plugin117/5.0.1 linux-x64 node-v22.23.3
26
27
  $ sfdx --help [COMMAND]
27
28
  USAGE
28
29
  $ sfdx COMMAND
@@ -32,40 +33,36 @@ USAGE
32
33
  <!-- usagestop -->
33
34
  <!-- commands -->
34
35
 
35
- - [`sfdx hello:org [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-helloorg--n-string--f--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
36
+ - [`sfdx hello:org [FILE]`](#sfdx-helloorg-file)
36
37
 
37
- ## `sfdx hello:org [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
38
+ ## `sfdx hello:org [FILE]`
38
39
 
39
40
  print a greeting and your org IDs
40
41
 
41
42
  ```
42
43
  USAGE
43
- $ sfdx hello:org [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
44
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
44
+ $ sfdx hello:org [FILE] -o <value> [--json] [--flags-dir <value>] [-n <value>] [-f] [-v <value>]
45
+ [--api-version <value>]
45
46
 
46
47
  FLAGS
47
- -f, --force example boolean flag
48
- -n, --name=<value> name to print
49
- -u, --targetusername=<value> username or alias for the target
50
- org; overrides default target org
51
- -v, --targetdevhubusername=<value> username or alias for the dev hub
52
- org; overrides default dev hub org
53
- --apiversion=<value> override the api version used for
54
- api requests made by this command
55
- --json format output as json
56
- --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
57
- this command invocation
58
-
59
- DESCRIPTION
60
- print a greeting and your org IDs
48
+ -f, --force example boolean flag
49
+ -n, --name=<value> name to print
50
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
51
+ configuration variable is already set.
52
+ -v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
53
+ --api-version=<value> Override the api version used for api requests made by this command
54
+
55
+ GLOBAL FLAGS
56
+ --flags-dir=<value> Import flag values from a directory.
57
+ --json Format output as json.
61
58
 
62
59
  EXAMPLES
63
- $ sfdx hello:org --targetusername myOrg@example.com --targetdevhubusername devhub@org.com
60
+ sf hello org --target-org myOrg@example.com --target-dev-hub devhub@org.com
64
61
 
65
- $ sfdx hello:org --name myname --targetusername myOrg@example.com
62
+ sf hello org --name myname --target-org myOrg@example.com
66
63
  ```
67
64
 
68
- _See code: [src/commands/hello/org.ts](https://github.com/vmundra/testPlugin117/blob/v1.5.3/src/commands/hello/org.ts)_
65
+ _See code: [src/commands/hello/org.ts](https://github.com/salesforcecli/testPackageRelease/blob/5.0.1/src/commands/hello/org.ts)_
69
66
 
70
67
  <!-- commandsstop -->
71
68
  <!-- debugging-your-plugin -->
@@ -1,17 +1,20 @@
1
- import { flags, SfdxCommand } from '@salesforce/command';
2
- import { AnyJson } from '@salesforce/ts-types';
3
- export default class Org extends SfdxCommand {
4
- static description: string;
5
- static examples: string[];
6
- static args: {
7
- name: string;
8
- }[];
9
- protected static flagsConfig: {
10
- name: flags.Discriminated<flags.String>;
11
- force: flags.Discriminated<flags.Boolean<boolean>>;
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type HelloOrgResult = {
3
+ orgId: string;
4
+ outputString: string;
5
+ };
6
+ export default class Org extends SfCommand<HelloOrgResult> {
7
+ static readonly summary: string;
8
+ static readonly examples: string[];
9
+ static readonly args: {
10
+ file: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
12
11
  };
13
- protected static requiresUsername: boolean;
14
- protected static supportsDevhubUsername: boolean;
15
- protected static requiresProject: boolean;
16
- run(): Promise<AnyJson>;
12
+ static readonly flags: {
13
+ name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ };
19
+ run(): Promise<HelloOrgResult>;
17
20
  }
@@ -1,31 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  /*
4
- * Copyright (c) 2020, salesforce.com, inc.
5
- * All rights reserved.
6
- * Licensed under the BSD 3-Clause license.
7
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2025, 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
- const os = require("os");
10
- const command_1 = require("@salesforce/command");
11
- const core_1 = require("@salesforce/core");
16
+ import { Args } from '@oclif/core';
17
+ import { Messages, SfError } from '@salesforce/core';
18
+ import { Flags, SfCommand, optionalHubFlagWithDeprecations, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, } from '@salesforce/sf-plugins-core';
12
19
  // Initialize Messages with the current plugin directory
13
- core_1.Messages.importMessagesDirectory(__dirname);
14
- // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
20
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
21
+ // Load the specific messages for this file. Messages from @salesforce/core,
15
22
  // or any library that is using the messages framework can also be loaded this way.
16
- const messages = core_1.Messages.loadMessages('@salesforce/test-plugin117', 'org');
17
- class Org extends command_1.SfdxCommand {
23
+ const messages = Messages.loadMessages('@salesforce/test-plugin117', 'org');
24
+ export default class Org extends SfCommand {
25
+ static summary = messages.getMessage('commandDescription');
26
+ static examples = messages.getMessages('examples');
27
+ static args = {
28
+ file: Args.string(),
29
+ };
30
+ static flags = {
31
+ // flag with a value (-n, --name=VALUE)
32
+ name: Flags.string({
33
+ char: 'n',
34
+ summary: messages.getMessage('nameFlagDescription'),
35
+ }),
36
+ force: Flags.boolean({
37
+ char: 'f',
38
+ summary: messages.getMessage('forceFlagDescription'),
39
+ }),
40
+ 'target-org': requiredOrgFlagWithDeprecations,
41
+ // Comment this out if your command does not support a hub org username
42
+ 'target-dev-hub': optionalHubFlagWithDeprecations,
43
+ 'api-version': orgApiVersionFlagWithDeprecations,
44
+ };
18
45
  async run() {
19
- const name = (this.flags.name || 'world');
20
- // this.org is guaranteed because requiresUsername=true, as opposed to supportsUsername
21
- const conn = this.org.getConnection();
46
+ const { args, flags } = await this.parse(Org);
47
+ const name = flags.name ?? 'world';
48
+ const org = flags['target-org'];
49
+ const conn = org.getConnection();
22
50
  const query = 'Select Name, TrialExpirationDate from Organization';
23
51
  // Query the org
24
52
  const result = await conn.query(query);
25
53
  // Organization will always return one result, but this is an example of throwing an error
26
54
  // The output and --json will automatically be handled for you.
27
55
  if (!result.records || result.records.length <= 0) {
28
- throw new core_1.SfdxError(messages.getMessage('errorNoOrgResults', [this.org.getOrgId()]));
56
+ throw new SfError(messages.getMessage('errorNoOrgResults', [org.getOrgId()]));
29
57
  }
30
58
  // Organization always only returns one result
31
59
  const orgName = result.records[0].Name;
@@ -35,38 +63,17 @@ class Org extends command_1.SfdxCommand {
35
63
  const date = new Date(trialExpirationDate).toDateString();
36
64
  outputString = `${outputString} and I will be around until ${date}!`;
37
65
  }
38
- this.ux.log(outputString);
39
- // this.hubOrg is NOT guaranteed because supportsHubOrgUsername=true, as opposed to requiresHubOrgUsername.
40
- if (this.hubOrg) {
41
- const hubOrgId = this.hubOrg.getOrgId();
42
- this.ux.log(`My hub org id is: ${hubOrgId}`);
66
+ this.log(outputString);
67
+ // the hub org is NOT guaranteed because target-dev-hub is optional.
68
+ const hubOrg = flags['target-dev-hub'];
69
+ if (hubOrg) {
70
+ this.log(`My hub org id is: ${hubOrg.getOrgId()}`);
43
71
  }
44
- if (this.flags.force && this.args.file) {
45
- this.ux.log(`You input --force and a file: ${this.args.file}`);
72
+ if (flags.force && args.file) {
73
+ this.log(`You input --force and a file: ${args.file}`);
46
74
  }
47
75
  // Return an object to be displayed with --json
48
- return { orgId: this.org.getOrgId(), outputString };
76
+ return { orgId: org.getOrgId(), outputString };
49
77
  }
50
78
  }
51
- exports.default = Org;
52
- Org.description = messages.getMessage('commandDescription');
53
- Org.examples = messages.getMessage('examples').split(os.EOL);
54
- Org.args = [{ name: 'file' }];
55
- Org.flagsConfig = {
56
- // flag with a value (-n, --name=VALUE)
57
- name: command_1.flags.string({
58
- char: 'n',
59
- description: messages.getMessage('nameFlagDescription'),
60
- }),
61
- force: command_1.flags.boolean({
62
- char: 'f',
63
- description: messages.getMessage('forceFlagDescription'),
64
- }),
65
- };
66
- // Comment this out if your command does not require an org username
67
- Org.requiresUsername = true;
68
- // Comment this out if your command does not support a hub org username
69
- Org.supportsDevhubUsername = true;
70
- // Set this to true if your command requires a project workspace; 'requiresProject' is false by default
71
- Org.requiresProject = false;
72
79
  //# sourceMappingURL=org.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"org.js","sourceRoot":"","sources":["../../../src/commands/hello/org.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAAuD;AAGvD,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;AAE5E,MAAqB,GAAI,SAAQ,qBAAW;IA4BnC,KAAK,CAAC,GAAG;QACd,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAW,CAAC;QAEpD,uFAAuF;QACvF,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,oDAAoD,CAAC;QAQnE,gBAAgB;QAChB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAe,KAAK,CAAC,CAAC;QAErD,0FAA0F;QAC1F,+DAA+D;QAC/D,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE;YACjD,MAAM,IAAI,gBAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;SACtF;QAED,8CAA8C;QAC9C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC;QAEl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ACxB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,mBAAmB,CAAC,CAAC,YAAY,EAAE,CAAC;YAC1D,YAAY,GAAG,GAAG,YAAY,+BAA+B,IAAI,GAAG,CAAC;QACvE,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEvB,oEAAoE;QACpE,MAAM,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACvC,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,qBAAqB,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,iCAAiC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,+CAA+C;QAC/C,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,CAAC;IACjD,CAAC"}
package/lib/index.js CHANGED
@@ -1,4 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {};
1
+ /*
2
+ * Copyright 2025, 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.
15
+ */
16
+ // BREAKING CHANGE test: bump to next major version
17
+ export default {};
4
18
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,mDAAmD;AACnD,eAAe,EAAE,CAAC"}
package/messages/org.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "forceFlagDescription": "example boolean flag",
5
5
  "errorNoOrgResults": "No results found for the org '%s'.",
6
6
  "examples": [
7
- "sfdx hello:org --targetusername myOrg@example.com --targetdevhubusername devhub@org.com",
8
- "sfdx hello:org --name myname --targetusername myOrg@example.com"
7
+ "sf hello org --target-org myOrg@example.com --target-dev-hub devhub@org.com",
8
+ "sf hello org --name myname --target-org myOrg@example.com"
9
9
  ]
10
- }
10
+ }
@@ -1 +1,105 @@
1
- {"version":"4.0.3","commands":{"hello:org":{"id":"hello:org","description":"print a greeting and your org IDs","strict":true,"usage":"<%= command.id %> [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/test-plugin117","pluginAlias":"@salesforce/test-plugin117","pluginType":"core","aliases":[],"examples":["sfdx hello:org --targetusername myOrg@example.com --targetdevhubusername devhub@org.com","sfdx hello:org --name myname --targetusername myOrg@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"name":{"name":"name","type":"option","char":"n","description":"name to print","multiple":false},"force":{"name":"force","type":"boolean","char":"f","description":"example boolean flag","allowNo":false}},"args":[{"name":"file"}],"flagsConfig":{"name":{"kind":"string","char":"n","description":"name to print","input":[],"multiple":false,"type":"option"},"force":{"kind":"boolean","char":"f","description":"example boolean flag","allowNo":false,"type":"boolean"}},"requiresUsername":true,"supportsDevhubUsername":true,"requiresProject":false}}}
1
+ {
2
+ "commands": {
3
+ "hello:org": {
4
+ "aliases": [],
5
+ "args": {
6
+ "file": {
7
+ "name": "file"
8
+ }
9
+ },
10
+ "examples": [
11
+ "sf hello org --target-org myOrg@example.com --target-dev-hub devhub@org.com",
12
+ "sf hello org --name myname --target-org myOrg@example.com"
13
+ ],
14
+ "flags": {
15
+ "json": {
16
+ "description": "Format output as json.",
17
+ "helpGroup": "GLOBAL",
18
+ "name": "json",
19
+ "allowNo": false,
20
+ "type": "boolean"
21
+ },
22
+ "flags-dir": {
23
+ "helpGroup": "GLOBAL",
24
+ "name": "flags-dir",
25
+ "summary": "Import flag values from a directory.",
26
+ "hasDynamicHelp": false,
27
+ "multiple": false,
28
+ "type": "option"
29
+ },
30
+ "name": {
31
+ "char": "n",
32
+ "name": "name",
33
+ "summary": "name to print",
34
+ "hasDynamicHelp": false,
35
+ "multiple": false,
36
+ "type": "option"
37
+ },
38
+ "force": {
39
+ "char": "f",
40
+ "name": "force",
41
+ "summary": "example boolean flag",
42
+ "allowNo": false,
43
+ "type": "boolean"
44
+ },
45
+ "target-org": {
46
+ "aliases": [
47
+ "targetusername",
48
+ "u"
49
+ ],
50
+ "char": "o",
51
+ "deprecateAliases": true,
52
+ "name": "target-org",
53
+ "noCacheDefault": true,
54
+ "required": true,
55
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
56
+ "hasDynamicHelp": true,
57
+ "multiple": false,
58
+ "type": "option"
59
+ },
60
+ "target-dev-hub": {
61
+ "aliases": [
62
+ "targetdevhubusername"
63
+ ],
64
+ "char": "v",
65
+ "deprecateAliases": true,
66
+ "name": "target-dev-hub",
67
+ "noCacheDefault": true,
68
+ "required": false,
69
+ "summary": "Username or alias of the Dev Hub org.",
70
+ "hasDynamicHelp": true,
71
+ "multiple": false,
72
+ "type": "option"
73
+ },
74
+ "api-version": {
75
+ "aliases": [
76
+ "apiversion"
77
+ ],
78
+ "deprecateAliases": true,
79
+ "description": "Override the api version used for api requests made by this command",
80
+ "name": "api-version",
81
+ "hasDynamicHelp": false,
82
+ "multiple": false,
83
+ "type": "option"
84
+ }
85
+ },
86
+ "hasDynamicHelp": true,
87
+ "hiddenAliases": [],
88
+ "id": "hello:org",
89
+ "pluginAlias": "@salesforce/test-plugin117",
90
+ "pluginName": "@salesforce/test-plugin117",
91
+ "pluginType": "core",
92
+ "strict": true,
93
+ "summary": "print a greeting and your org IDs",
94
+ "enableJsonFlag": true,
95
+ "isESM": true,
96
+ "relativePath": [
97
+ "lib",
98
+ "commands",
99
+ "hello",
100
+ "org.js"
101
+ ]
102
+ }
103
+ },
104
+ "version": "5.0.1"
105
+ }
package/package.json CHANGED
@@ -1,58 +1,45 @@
1
1
  {
2
2
  "name": "@salesforce/test-plugin117",
3
- "version": "4.0.3",
3
+ "version": "5.0.1",
4
4
  "author": "Vamsi-Mundra-Salesforce",
5
5
  "bugs": "https://github.com/salesforcecli/testPackageRelease/issues",
6
6
  "dependencies": {
7
- "@oclif/core": "^1",
8
- "@salesforce/command": "^5.2.6",
9
- "@salesforce/core": "^3.26.2",
7
+ "@oclif/core": "^5",
8
+ "@salesforce/core": "^9.3.6",
9
+ "@salesforce/sf-plugins-core": "^13.0.7",
10
10
  "tslib": "^2"
11
11
  },
12
12
  "devDependencies": {
13
- "@oclif/plugin-command-snapshot": "^3.1.3",
14
- "@salesforce/dev-config": "^3.0.0",
15
- "@salesforce/dev-scripts": "^3.0.0",
16
- "@salesforce/plugin-command-reference": "^1.4.0",
17
- "@salesforce/prettier-config": "^0.0.2",
18
- "@salesforce/ts-sinon": "^1",
19
- "@typescript-eslint/eslint-plugin": "^5.33.0",
20
- "@typescript-eslint/parser": "^5.33.0",
21
- "chai": "^4.2.0",
22
- "eslint": "^8.21.0",
23
- "eslint-config-prettier": "^8.5.0",
24
- "eslint-config-salesforce": "^2.0.2",
25
- "eslint-config-salesforce-license": "^0.1.6",
26
- "eslint-config-salesforce-typescript": "^1.1.1",
27
- "eslint-plugin-header": "^3.0.0",
28
- "eslint-plugin-import": "^2.26.0",
29
- "eslint-plugin-jsdoc": "^46.9.0",
30
- "eslint-plugin-typescript": "^0",
13
+ "@oclif/plugin-command-snapshot": "^6.0.5",
14
+ "@salesforce/dev-scripts": "^15.0.0",
15
+ "@salesforce/plugin-command-reference": "^3.1.5",
16
+ "@salesforce/ts-sinon": "^1.4.39",
17
+ "@types/chai": "^4.3.17",
18
+ "@types/mocha": "^10.0.10",
19
+ "@types/node": "^18",
20
+ "@types/sinon": "^10.0.20",
21
+ "eslint": "^10.4.0",
22
+ "eslint-config-salesforce": "^2.2.2",
23
+ "eslint-config-salesforce-typescript": "^6.0.0",
24
+ "eslint-plugin-typescript": "^0.14.0",
31
25
  "globby": "^11",
32
- "husky": "^7.0.4",
33
- "mocha": "^9.1.3",
34
- "nyc": "^15.1.0",
35
- "oclif": "^3.0.1",
36
- "prettier": "^2.7.1",
37
- "pretty-quick": "^3.1.0",
38
- "sinon": "10.0.0",
39
- "ts-node": "^10.0.0",
40
- "typescript": "^4.1.3"
26
+ "oclif": "^6.0.8",
27
+ "ts-node": "^10.9.2",
28
+ "typescript": "^6.0.0"
41
29
  },
42
30
  "engines": {
43
- "node": ">=14.0.0"
31
+ "node": ">=18.0.0"
44
32
  },
45
33
  "files": [
46
34
  "/lib",
47
35
  "/messages",
48
- "/npm-shrinkwrap.json",
49
36
  "/oclif.manifest.json"
50
37
  ],
51
38
  "homepage": "https://github.com/salesforcecli/testPackageRelease",
52
39
  "keywords": [
53
40
  "sfdx-plugin"
54
41
  ],
55
- "license": "BSD-3-Clause",
42
+ "license": "Apache-2.0",
56
43
  "oclif": {
57
44
  "commands": "./lib/commands",
58
45
  "bin": "sfdx",
@@ -69,29 +56,146 @@
69
56
  },
70
57
  "repository": "salesforcecli/testPackageRelease",
71
58
  "scripts": {
72
- "build": "sf-build",
59
+ "build": "wireit",
73
60
  "clean": "sf-clean",
74
61
  "clean-all": "sf-clean all",
75
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
76
- "compile": "sf-compile",
62
+ "compile": "wireit",
77
63
  "docs": "sf-docs",
78
- "format": "sf-format",
79
- "lint": "sf-lint",
80
- "postpack": "shx rm -f oclif.manifest.json",
81
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference",
64
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
65
+ "format": "wireit",
66
+ "link-check": "wireit",
67
+ "lint": "wireit",
68
+ "postpack": "sf-clean --ignore-signing-artifacts",
82
69
  "prepack": "sf-prepack",
83
70
  "prepare": "sf-install",
84
- "pretest": "sf-compile-test",
85
- "test": "sf-test",
86
- "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
87
- "test:deprecation-policy": "./bin/dev snapshot:compare",
71
+ "test": "wireit",
72
+ "test:nuts": "echo \"no NUTs in this repo\" && exit 0",
73
+ "test:only": "wireit",
88
74
  "version": "oclif readme"
89
75
  },
90
76
  "publishConfig": {
91
77
  "access": "public"
92
78
  },
79
+ "wireit": {
80
+ "build": {
81
+ "dependencies": [
82
+ "compile",
83
+ "lint"
84
+ ]
85
+ },
86
+ "compile": {
87
+ "command": "tsc -p . --pretty --incremental",
88
+ "files": [
89
+ "src/**/*.ts",
90
+ "**/tsconfig.json",
91
+ "messages/**"
92
+ ],
93
+ "output": [
94
+ "lib/**",
95
+ "*.tsbuildinfo"
96
+ ],
97
+ "clean": "if-file-deleted"
98
+ },
99
+ "format": {
100
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
101
+ "files": [
102
+ "src/**/*.ts",
103
+ "test/**/*.ts",
104
+ "schemas/**/*.json",
105
+ "command-snapshot.json",
106
+ ".prettier*"
107
+ ],
108
+ "output": []
109
+ },
110
+ "lint": {
111
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
112
+ "files": [
113
+ "src/**/*.ts",
114
+ "test/**/*.ts",
115
+ "messages/**",
116
+ "**/eslint.config.*",
117
+ "**/.eslint*",
118
+ "**/tsconfig.json"
119
+ ],
120
+ "output": []
121
+ },
122
+ "link-check": {
123
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|localhost|%s\" --markdown --retry --directory-listing --verbosity error",
124
+ "files": [
125
+ "./*.md",
126
+ "./!(CHANGELOG).md",
127
+ "messages/**/*.md"
128
+ ],
129
+ "output": []
130
+ },
131
+ "test:compile": {
132
+ "command": "tsc -p \"./test\" --pretty",
133
+ "files": [
134
+ "test/**/*.ts",
135
+ "**/tsconfig.json"
136
+ ],
137
+ "output": []
138
+ },
139
+ "test": {
140
+ "dependencies": [
141
+ "test:compile",
142
+ "test:only",
143
+ "test:command-reference",
144
+ "test:deprecation-policy",
145
+ "lint",
146
+ "test:json-schema",
147
+ "link-check"
148
+ ]
149
+ },
150
+ "test:only": {
151
+ "command": "nyc mocha \"test/**/*.test.ts\"",
152
+ "env": {
153
+ "FORCE_COLOR": "2"
154
+ },
155
+ "files": [
156
+ "test/**/*.ts",
157
+ "src/**/*.ts",
158
+ "**/tsconfig.json",
159
+ ".mocha*",
160
+ "!*.nut.ts",
161
+ ".nycrc"
162
+ ],
163
+ "output": []
164
+ },
165
+ "test:command-reference": {
166
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
167
+ "files": [
168
+ "src/**/*.ts",
169
+ "messages/**",
170
+ "package.json"
171
+ ],
172
+ "output": [
173
+ "tmp/root"
174
+ ]
175
+ },
176
+ "test:deprecation-policy": {
177
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare",
178
+ "files": [
179
+ "src/**/*.ts"
180
+ ],
181
+ "output": [],
182
+ "dependencies": [
183
+ "compile"
184
+ ]
185
+ },
186
+ "test:json-schema": {
187
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
188
+ "files": [
189
+ "src/**/*.ts",
190
+ "schemas"
191
+ ],
192
+ "output": []
193
+ }
194
+ },
195
+ "type": "module",
196
+ "exports": "./lib/index.js",
93
197
  "sfdx": {
94
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/test-plugin117/4.0.3.crt",
95
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/test-plugin117/4.0.3.sig"
198
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/test-plugin117/5.0.1.crt",
199
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/test-plugin117/5.0.1.sig"
96
200
  }
97
201
  }