Skip to content

Commit 3bb3176

Browse files
feat: frontdoor via post + --private flag (#913)
* perf: load share messages later * chore: bump plugins-core * feat: frontdoor via post from local file * chore: bump open * test: nut use nonZero * fix: use new inquirer via sf-plugins-core * refactor: pr feedback * chore: latest plugins-core * chore: bump open lib * fix: use new option flag typing * chore: bump plugins-core * test: nonZero * test: new prompt message * docs: fix readme links * feat: private browser * chore: sync with meain * feat: open time works for wsl * chore: bump open * chore: no newInstance * test: don't use newInstance by default * Apply suggestions from code review Co-authored-by: Juliet Shackell <[email protected]> * refactor: tighter use of newInstance and private as a flag * chore: snapshot and schema * fix: delete from from cp error listener * test: stub returns an eventEmitter --------- Co-authored-by: Juliet Shackell <[email protected]>
1 parent becfe77 commit 3bb3176

File tree

7 files changed

+131
-86
lines changed

7 files changed

+131
-86
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ FLAG DESCRIPTIONS
216216
sandbox.
217217
```
218218

219-
_See code: [lib/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/create/sandbox.ts)_
219+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/create/sandbox.ts)_
220220

221221
## `sf org create scratch`
222222

@@ -236,7 +236,8 @@ FLAGS
236236
-i, --client-id=<value> Consumer key of the Dev Hub connected app.
237237
-t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source
238238
tracking.
239-
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org.
239+
-v, --target-dev-hub=<value> (required) [default: [email protected]] Username or alias of the Dev Hub
240+
org.
240241
-w, --wait=<minutes> [default: 5 minutes] Number of minutes to wait for the scratch org to be ready.
241242
-y, --duration-days=<days> [default: 7 days] Number of days before the org expires.
242243
--api-version=<value> Override the api version used for api requests made by this command
@@ -369,7 +370,7 @@ FLAG DESCRIPTIONS
369370
Omit this flag to have Salesforce generate a unique username for your org.
370371
```
371372

372-
_See code: [lib/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/create/scratch.ts)_
373+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/create/scratch.ts)_
373374

374375
## `sf org delete sandbox`
375376

@@ -413,7 +414,7 @@ EXAMPLES
413414
$ sf org delete sandbox --target-org my-sandbox --no-prompt
414415
```
415416

416-
_See code: [lib/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/delete/sandbox.ts)_
417+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/delete/sandbox.ts)_
417418

418419
## `sf org delete scratch`
419420

@@ -455,7 +456,7 @@ EXAMPLES
455456
$ sf org delete scratch --target-org my-scratch-org --no-prompt
456457
```
457458

458-
_See code: [lib/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/delete/scratch.ts)_
459+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/delete/scratch.ts)_
459460

460461
## `sf org disable tracking`
461462

@@ -493,7 +494,7 @@ EXAMPLES
493494
$ sf org disable tracking
494495
```
495496

496-
_See code: [lib/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/disable/tracking.ts)_
497+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/disable/tracking.ts)_
497498

498499
## `sf org display`
499500

@@ -537,7 +538,7 @@ EXAMPLES
537538
$ sf org display --target-org TestOrg1 --verbose
538539
```
539540

540-
_See code: [lib/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/display.ts)_
541+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/display.ts)_
541542

542543
## `sf org enable tracking`
543544

@@ -578,7 +579,7 @@ EXAMPLES
578579
$ sf org enable tracking
579580
```
580581

581-
_See code: [lib/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/enable/tracking.ts)_
582+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/enable/tracking.ts)_
582583

583584
## `sf org list`
584585

@@ -616,7 +617,7 @@ EXAMPLES
616617
$ sf org list --clean
617618
```
618619

619-
_See code: [lib/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/list.ts)_
620+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/list.ts)_
620621

621622
## `sf org list metadata`
622623

@@ -681,7 +682,7 @@ FLAG DESCRIPTIONS
681682
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
682683
```
683684

684-
_See code: [lib/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/list/metadata.ts)_
685+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/list/metadata.ts)_
685686

686687
## `sf org list metadata-types`
687688

@@ -735,7 +736,7 @@ FLAG DESCRIPTIONS
735736
Override the api version used for api requests made by this command
736737
```
737738

738-
_See code: [lib/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/list/metadata-types.ts)_
739+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/list/metadata-types.ts)_
739740

740741
## `sf org open`
741742

@@ -801,7 +802,7 @@ EXAMPLES
801802
$ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
802803
```
803804

804-
_See code: [lib/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/open.ts)_
805+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/open.ts)_
805806

806807
## `sf org resume sandbox`
807808

@@ -863,7 +864,7 @@ FLAG DESCRIPTIONS
863864
returns the job ID. To resume checking the sandbox creation, rerun this command.
864865
```
865866

866-
_See code: [lib/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/resume/sandbox.ts)_
867+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/resume/sandbox.ts)_
867868

868869
## `sf org resume scratch`
869870

@@ -909,6 +910,6 @@ FLAG DESCRIPTIONS
909910
The job ID is valid for 24 hours after you start the scratch org creation.
910911
```
911912

912-
_See code: [lib/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.2/lib/commands/org/resume/scratch.ts)_
913+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.2.1/src/commands/org/resume/scratch.ts)_
913914

914915
<!-- commandsstop -->

command-snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"command": "org:open",
178178
"flagAliases": ["apiversion", "sourcefile", "targetusername", "u", "urlonly"],
179179
"flagChars": ["b", "f", "o", "p", "r"],
180-
"flags": ["api-version", "browser", "json", "loglevel", "path", "source-file", "target-org", "url-only"],
180+
"flags": ["api-version", "browser", "json", "loglevel", "path", "private", "source-file", "target-org", "url-only"],
181181
"plugin": "@salesforce/plugin-org"
182182
},
183183
{

messages/open.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ To open in a specific browser, use the --browser flag. Supported browsers are "c
1818

1919
$ <%= config.bin %> <%= command.id %>
2020

21+
- Open your default org in an incognito window of your default browser:
22+
23+
$ <%= config.bin %> <%= command.id %> --private
24+
2125
- Open the org with alias MyTestOrg1 in the Firefox browser:
2226

2327
$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox
@@ -34,6 +38,10 @@ To open in a specific browser, use the --browser flag. Supported browsers are "c
3438

3539
$ <%= config.bin %> <%= command.id %> --source-file force-app/main/default/flows/Hello.flow-meta.xml
3640

41+
# flags.private.summary
42+
43+
Open the org in the default browser using private (incognito) mode.
44+
3745
# flags.browser.summary
3846

3947
Browser where the org opens.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"@salesforce/source-deploy-retrieve": "^10.2.5",
1313
"chalk": "^5.3.0",
1414
"change-case": "^5.3.0",
15-
"open": "^10.0.2"
15+
"is-wsl": "^3.1.0",
16+
"open": "^10.0.3"
1617
},
1718
"devDependencies": {
1819
"@oclif/plugin-command-snapshot": "^5.0.5",
@@ -23,7 +24,7 @@
2324
"@types/shelljs": "^0.8.14",
2425
"eslint-plugin-sf-plugin": "^1.17.0",
2526
"moment": "^2.30.1",
26-
"oclif": "^4.1.3",
27+
"oclif": "^4.1.4",
2728
"shelljs": "^0.8.5",
2829
"shx": "0.3.4",
2930
"ts-node": "^10.9.2",

0 commit comments

Comments
 (0)