Skip to content

Commit 228d2b4

Browse files
committed
chore: fix merge conflict
2 parents 7f8aa20 + 87a8e08 commit 228d2b4

File tree

12 files changed

+271
-83
lines changed

12 files changed

+271
-83
lines changed

.github/workflows/slackprnotification.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.13.2](https://github.com/salesforcecli/plugin-org/compare/v1.13.1...v1.13.2) (2022-05-20)
6+
7+
### Bug Fixes
8+
9+
- add back a long description that got lost ([83a2341](https://github.com/salesforcecli/plugin-org/commit/83a2341f96908f33647b609f7082f0f9e52bc289))
10+
- update list so the examples render correctly in CLI Ref ([7c024a6](https://github.com/salesforcecli/plugin-org/commit/7c024a6272b70121e32ece4063c17a7c13c080db))
11+
- update messages so the examples render correctly in CLI Ref ([1329901](https://github.com/salesforcecli/plugin-org/commit/13299011fb917f77008f985af6b70bf005a2f4b6))
12+
- update open so the examples render correctly in CLI Ref ([73f60ff](https://github.com/salesforcecli/plugin-org/commit/73f60ffeeb934eee1a2af584357aa7b24b62bad6))
13+
- update status so the examples render correctly in CLI Ref ([0d3792f](https://github.com/salesforcecli/plugin-org/commit/0d3792fa3019eb008e39716c5aacfaebb0a33bc2))
14+
15+
### [1.13.1](https://github.com/salesforcecli/plugin-org/compare/v1.13.0...v1.13.1) (2022-05-11)
16+
517
## [1.13.0](https://github.com/salesforcecli/plugin-org/compare/v1.12.1...v1.13.0) (2022-05-10)
618

719
### Features

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ EXAMPLES
151151
$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
152152
```
153153

154-
_See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/beta/create.ts)_
154+
_See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/beta/create.ts)_
155155

156156
## `sfdx force:org:clone [name=value...] -t sandbox [-f <filepath>] [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
157157

@@ -196,7 +196,7 @@ EXAMPLES
196196
$ sfdx force:org:clone -t sandbox SandboxName=DevSbx1 SourceSandboxName=Sbx2Clone -u prodOrg -a MyDevSandbox
197197
```
198198

199-
_See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/clone.ts)_
199+
_See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/clone.ts)_
200200

201201
## `sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
202202

@@ -232,7 +232,7 @@ EXAMPLES
232232
$ sfdx force:org:delete -u MyOrgAlias -p
233233
```
234234

235-
_See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/delete.ts)_
235+
_See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/delete.ts)_
236236

237237
## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
238238

@@ -267,13 +267,13 @@ DESCRIPTION
267267
auth:jwt:grant)
268268
269269
EXAMPLES
270-
sfdx force:org:display
271-
sfdx force:org:display -u [email protected]
272-
sfdx force:org:display -u TestOrg1 --json
273-
sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
270+
$ sfdx force:org:display
271+
$ sfdx force:org:display -u [email protected]
272+
$ sfdx force:org:display -u TestOrg1 --json
273+
$ sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
274274
```
275275

276-
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/display.ts)_
276+
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/display.ts)_
277277

278278
## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
279279

@@ -306,12 +306,12 @@ OPTIONS
306306
--verbose list more information about each org
307307
308308
EXAMPLES
309-
sfdx force:org:list
310-
sfdx force:org:list --verbose --json
311-
sfdx force:org:list --verbose --json > tmp/MyOrgList.json
309+
$ sfdx force:org:list
310+
$ sfdx force:org:list --verbose --json
311+
$ sfdx force:org:list --verbose --json > tmp/MyOrgList.json
312312
```
313313

314-
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/list.ts)_
314+
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/list.ts)_
315315

316316
## `sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
317317

@@ -349,14 +349,14 @@ DESCRIPTION
349349
you don't specify --browser, the org opens in your default browser.
350350
351351
EXAMPLES
352-
sfdx force:org:open
353-
sfdx force:org:open -u [email protected]
354-
sfdx force:org:open -u MyTestOrg1
355-
sfdx force:org:open -r -p lightning
356-
sfdx force:org:open -u [email protected] -b firefox
352+
$ sfdx force:org:open
353+
$ sfdx force:org:open -u [email protected]
354+
$ sfdx force:org:open -u MyTestOrg1
355+
$ sfdx force:org:open -r -p lightning
356+
$ sfdx force:org:open -u [email protected] -b firefox
357357
```
358358

359-
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/open.ts)_
359+
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/open.ts)_
360360

361361
## `sfdx force:org:status -n <string> [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
362362

@@ -400,10 +400,10 @@ DESCRIPTION
400400
license.
401401
402402
EXAMPLES
403-
sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
404-
sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
403+
$ sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
404+
$ sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
405405
```
406406

407-
_See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/status.ts)_
407+
_See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/v1.13.1/src/commands/force/org/status.ts)_
408408

409409
<!-- commandsstop -->

messages/clone.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"setalias": "alias for the cloned org",
1313
"definitionfile": "path to the sandbox definition file"
1414
},
15+
"flagsLong": {
16+
"wait": "Sets the streaming client socket timeout, in minutes. If the streaming client socket has no contact from the server for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently."
17+
},
1518
"commandSuccess": "The sandbox org cloning process %s is in progress. Run \"sfdx force:org:status -n %s\" to check for status. If the org is ready, checking the status also logs the requesting user in to the sandbox org and authorizes the org for use with Salesforce CLI.",
1619
"missingLicenseType": "The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the \"licenseType\" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.",
1720
"commandOrganizationTypeNotSupport": "The only supported org type is: %s",

messages/display.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"description": "get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)",
33
"examples": [
4-
"sfdx force:org:display",
5-
"sfdx force:org:display -u [email protected]",
6-
"sfdx force:org:display -u TestOrg1 --json",
7-
"sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"
4+
"$ sfdx force:org:display",
5+
"$ sfdx force:org:display -u [email protected]",
6+
"$ sfdx force:org:display -u TestOrg1 --json",
7+
"$ sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"
88
],
99
"noScratchOrgInfoError": "No information for scratch org with ID %s found in Dev Hub %s.",
1010
"noScratchOrgInfoAction": "First check that you can access your Dev Hub. Then check that the ScratchOrgInfo standard object in your Dev Hub contains a record for your scratch org. In Setup, navigate to the Dev Hub page and click the Scratch Org Infos tab. If you find your scratch org, try again."

messages/list.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"description": "list all orgs you’ve created or authenticated to",
33
"examples": [
4-
"sfdx force:org:list",
5-
"sfdx force:org:list --verbose --json",
6-
"sfdx force:org:list --verbose --json > tmp/MyOrgList.json"
4+
"$ sfdx force:org:list",
5+
"$ sfdx force:org:list --verbose --json",
6+
"$ sfdx force:org:list --verbose --json > tmp/MyOrgList.json"
77
],
88
"verbose": "list more information about each org",
99
"all": "include expired, deleted, and unknown-status scratch orgs",

messages/open.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"description": "open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"https://MyDomainName.my.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
33
"examples": [
4-
"sfdx force:org:open",
5-
"sfdx force:org:open -u [email protected]",
6-
"sfdx force:org:open -u MyTestOrg1",
7-
"sfdx force:org:open -r -p lightning",
8-
"sfdx force:org:open -u [email protected] -b firefox"
4+
"$ sfdx force:org:open",
5+
"$ sfdx force:org:open -u [email protected]",
6+
"$ sfdx force:org:open -u MyTestOrg1",
7+
"$ sfdx force:org:open -r -p lightning",
8+
"$ sfdx force:org:open -u [email protected] -b firefox"
99
],
1010
"browser": "browser where the org opens",
1111
"cliPath": "navigation URL path",

messages/status.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"examples": [
3-
"sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg",
4-
"sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg"
3+
"$ sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg",
4+
"$ sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg"
55
],
66
"description": "report status of sandbox creation or clone and authenticate to it\nUse this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.\nUse the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.\nSet the --targetusername (-u) parameter to the username or alias of the production org that contains the sandbox license.",
77
"flags": {

src/commands/force/org/clone.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class OrgCloneCommand extends SfdxCommand {
5858
wait: flags.minutes({
5959
char: 'w',
6060
description: messages.getMessage('flags.wait'),
61+
longDescription: messages.getMessage('flagsLong.wait'),
6162
min: Duration.minutes(2),
6263
default: Duration.minutes(6),
6364
}),
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2021, salesforce.com, inc.
3+
* All rights reserved.
4+
* Licensed under the BSD 3-Clause license.
5+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6+
*/
7+
8+
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
9+
import { expect } from 'chai';
10+
11+
let session: TestSession;
12+
13+
describe('test org:open command', () => {
14+
before(async () => {
15+
session = await TestSession.create({
16+
project: { name: 'forceOrgList' },
17+
setupCommands: ['sfdx force:org:create -f config/project-scratch-def.json --setdefaultusername --wait 10'],
18+
});
19+
});
20+
21+
it('org:open command', async () => {
22+
const result = execCmd('force:org:open --urlonly --json', {
23+
ensureExitCode: 0,
24+
}).jsonOutput.result as { url: string; orgId: string; username: string };
25+
expect(result).to.be.ok;
26+
expect(result).to.have.keys(['url', 'orgId', 'username']);
27+
expect(result?.url).to.include('/secur/frontdoor.jsp');
28+
});
29+
30+
after(async () => {
31+
await session.zip(undefined, 'artifacts');
32+
await session.clean();
33+
});
34+
});

0 commit comments

Comments
 (0)