@salesforce/plugin-org 4.3.6-dev.0 → 4.3.6-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/lib/commands/org/create/scratch.js +40 -16
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/resume/scratch.js +39 -14
- package/lib/commands/org/resume/scratch.js.map +1 -1
- package/lib/components/spinner.d.ts +0 -5
- package/lib/components/spinner.js.map +1 -1
- package/lib/components/stages.d.ts +43 -0
- package/lib/components/stages.js +117 -43
- package/lib/components/stages.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ FLAG DESCRIPTIONS
|
|
|
229
229
|
sandbox.
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
-
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
232
|
+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/create/sandbox.ts)_
|
|
233
233
|
|
|
234
234
|
## `sf org create scratch`
|
|
235
235
|
|
|
@@ -383,7 +383,7 @@ FLAG DESCRIPTIONS
|
|
|
383
383
|
Omit this flag to have Salesforce generate a unique username for your org.
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
386
|
+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/create/scratch.ts)_
|
|
387
387
|
|
|
388
388
|
## `sf org delete sandbox`
|
|
389
389
|
|
|
@@ -429,7 +429,7 @@ EXAMPLES
|
|
|
429
429
|
$ sf org delete sandbox --target-org my-sandbox --no-prompt
|
|
430
430
|
```
|
|
431
431
|
|
|
432
|
-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
432
|
+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/delete/sandbox.ts)_
|
|
433
433
|
|
|
434
434
|
## `sf org delete scratch`
|
|
435
435
|
|
|
@@ -473,7 +473,7 @@ EXAMPLES
|
|
|
473
473
|
$ sf org delete scratch --target-org my-scratch-org --no-prompt
|
|
474
474
|
```
|
|
475
475
|
|
|
476
|
-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
476
|
+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/delete/scratch.ts)_
|
|
477
477
|
|
|
478
478
|
## `sf org disable tracking`
|
|
479
479
|
|
|
@@ -512,7 +512,7 @@ EXAMPLES
|
|
|
512
512
|
$ sf org disable tracking
|
|
513
513
|
```
|
|
514
514
|
|
|
515
|
-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
515
|
+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/disable/tracking.ts)_
|
|
516
516
|
|
|
517
517
|
## `sf org display`
|
|
518
518
|
|
|
@@ -557,7 +557,7 @@ EXAMPLES
|
|
|
557
557
|
$ sf org display --target-org TestOrg1 --verbose
|
|
558
558
|
```
|
|
559
559
|
|
|
560
|
-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
560
|
+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/display.ts)_
|
|
561
561
|
|
|
562
562
|
## `sf org enable tracking`
|
|
563
563
|
|
|
@@ -599,7 +599,7 @@ EXAMPLES
|
|
|
599
599
|
$ sf org enable tracking
|
|
600
600
|
```
|
|
601
601
|
|
|
602
|
-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
602
|
+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/enable/tracking.ts)_
|
|
603
603
|
|
|
604
604
|
## `sf org list`
|
|
605
605
|
|
|
@@ -638,7 +638,7 @@ EXAMPLES
|
|
|
638
638
|
$ sf org list --clean
|
|
639
639
|
```
|
|
640
640
|
|
|
641
|
-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
641
|
+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/list.ts)_
|
|
642
642
|
|
|
643
643
|
## `sf org list metadata`
|
|
644
644
|
|
|
@@ -705,7 +705,7 @@ FLAG DESCRIPTIONS
|
|
|
705
705
|
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
|
|
706
706
|
```
|
|
707
707
|
|
|
708
|
-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
708
|
+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/list/metadata.ts)_
|
|
709
709
|
|
|
710
710
|
## `sf org list metadata-types`
|
|
711
711
|
|
|
@@ -760,7 +760,7 @@ FLAG DESCRIPTIONS
|
|
|
760
760
|
Override the api version used for api requests made by this command
|
|
761
761
|
```
|
|
762
762
|
|
|
763
|
-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
763
|
+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/list/metadata-types.ts)_
|
|
764
764
|
|
|
765
765
|
## `sf org open`
|
|
766
766
|
|
|
@@ -832,7 +832,7 @@ EXAMPLES
|
|
|
832
832
|
$ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
|
|
833
833
|
```
|
|
834
834
|
|
|
835
|
-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
835
|
+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/open.ts)_
|
|
836
836
|
|
|
837
837
|
## `sf org refresh sandbox`
|
|
838
838
|
|
|
@@ -909,7 +909,7 @@ FLAG DESCRIPTIONS
|
|
|
909
909
|
By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
|
|
910
910
|
```
|
|
911
911
|
|
|
912
|
-
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
912
|
+
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/refresh/sandbox.ts)_
|
|
913
913
|
|
|
914
914
|
## `sf org resume sandbox`
|
|
915
915
|
|
|
@@ -972,7 +972,7 @@ FLAG DESCRIPTIONS
|
|
|
972
972
|
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
973
973
|
```
|
|
974
974
|
|
|
975
|
-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
975
|
+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/resume/sandbox.ts)_
|
|
976
976
|
|
|
977
977
|
## `sf org resume scratch`
|
|
978
978
|
|
|
@@ -1019,6 +1019,6 @@ FLAG DESCRIPTIONS
|
|
|
1019
1019
|
The job ID is valid for 24 hours after you start the scratch org creation.
|
|
1020
1020
|
```
|
|
1021
1021
|
|
|
1022
|
-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.
|
|
1022
|
+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/4.3.6-dev.1/src/commands/org/resume/scratch.ts)_
|
|
1023
1023
|
|
|
1024
1024
|
<!-- commandsstop -->
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
* Licensed under the BSD 3-Clause license.
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
import { Lifecycle, Messages, Org, scratchOrgCreate, scratchOrgLifecycleEventName, SfError, } from '@salesforce/core';
|
|
7
|
+
import { Lifecycle, Messages, Org, scratchOrgCreate, scratchOrgLifecycleEventName, scratchOrgLifecycleStages, SfError, } from '@salesforce/core';
|
|
8
8
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
9
9
|
import { Duration } from '@salesforce/kit';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { Status } from '../../../components/stages.js';
|
|
10
|
+
import terminalLink from 'terminal-link';
|
|
11
|
+
import { MultiStageRenderer } from '../../../components/stages.js';
|
|
13
12
|
import { buildScratchOrgRequest } from '../../../shared/scratchOrgRequest.js';
|
|
14
13
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
15
14
|
const messages = Messages.loadMessages('@salesforce/plugin-org', 'create_scratch');
|
|
@@ -93,7 +92,7 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
93
92
|
wait: Flags.duration({
|
|
94
93
|
unit: 'minutes',
|
|
95
94
|
default: Duration.minutes(5),
|
|
96
|
-
min:
|
|
95
|
+
min: 1,
|
|
97
96
|
char: 'w',
|
|
98
97
|
helpValue: '<minutes>',
|
|
99
98
|
summary: messages.getMessage('flags.wait.summary'),
|
|
@@ -151,13 +150,41 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
151
150
|
throw new SfError('No instance URL found for the dev hub');
|
|
152
151
|
}
|
|
153
152
|
const createCommandOptions = await buildScratchOrgRequest(flags, flags['client-id'] ? await this.secretPrompt({ message: messages.getMessage('prompt.secret') }) : undefined);
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
const ms = new MultiStageRenderer({
|
|
154
|
+
stages: flags.async ? ['prepare request', 'send request', 'done'] : scratchOrgLifecycleStages,
|
|
155
|
+
title: flags.async ? 'Creating Scratch Org (async)' : 'Creating Scratch Org',
|
|
156
|
+
info: [
|
|
157
|
+
{
|
|
158
|
+
label: 'Request Id',
|
|
159
|
+
get: (data) => data.scratchOrgInfo?.Id && terminalLink(data.scratchOrgInfo.Id, `${baseUrl}/${data.scratchOrgInfo.Id}`),
|
|
160
|
+
isBold: true,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: 'OrgId',
|
|
164
|
+
get: (data) => data.scratchOrgInfo?.ScratchOrg,
|
|
165
|
+
isBold: true,
|
|
166
|
+
color: 'cyan',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: 'Username',
|
|
170
|
+
get: (data) => data.scratchOrgInfo?.SignupUsername,
|
|
171
|
+
isBold: true,
|
|
172
|
+
color: 'cyan',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: 'Alias',
|
|
176
|
+
get: (data) => data.alias,
|
|
177
|
+
isStatic: true,
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
});
|
|
181
|
+
if (!this.jsonEnabled()) {
|
|
182
|
+
ms.start({ alias: flags.alias });
|
|
183
|
+
}
|
|
156
184
|
lifecycle.on(scratchOrgLifecycleEventName, async (data) => {
|
|
157
|
-
|
|
158
|
-
instance?.rerender(React.createElement(Status, { isAsync: flags.async, data: data, baseUrl: baseUrl }));
|
|
185
|
+
ms.goto(data.stage, data);
|
|
159
186
|
if (data.stage === 'done') {
|
|
160
|
-
|
|
187
|
+
ms.stop();
|
|
161
188
|
}
|
|
162
189
|
return Promise.resolve();
|
|
163
190
|
});
|
|
@@ -167,8 +194,8 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
167
194
|
throw new SfError('The scratch org did not return with any information');
|
|
168
195
|
}
|
|
169
196
|
if (flags.async) {
|
|
170
|
-
|
|
171
|
-
|
|
197
|
+
ms.last({ scratchOrgInfo });
|
|
198
|
+
ms.stop();
|
|
172
199
|
this.log();
|
|
173
200
|
this.info(messages.getMessage('action.resume', [this.config.bin, scratchOrgInfo.Id]));
|
|
174
201
|
}
|
|
@@ -179,10 +206,7 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
179
206
|
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
|
|
180
207
|
}
|
|
181
208
|
catch (error) {
|
|
182
|
-
|
|
183
|
-
instance.rerender(React.createElement(Status, { isAsync: flags.async, data: scratchOrgLifecycleData, error: error, baseUrl: baseUrl }));
|
|
184
|
-
instance.unmount();
|
|
185
|
-
}
|
|
209
|
+
ms.stop(error);
|
|
186
210
|
if (error instanceof SfError && error.name === 'ScratchOrgInfoTimeoutError') {
|
|
187
211
|
const scratchOrgInfoId = error.data.scratchOrgInfoId;
|
|
188
212
|
const resumeMessage = messages.getMessage('action.resume', [this.config.bin, scratchOrgInfoId]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/create/scratch.
|
|
1
|
+
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/create/scratch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,QAAQ,EACR,GAAG,EACH,gBAAgB,EAEhB,4BAA4B,EAC5B,yBAAyB,EACzB,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,E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ACX,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;YAClD,CAAC;YAED,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;QACtF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,EAAE,CAAC,IAAI,CAAC,KAAc,CAAC,CAAC;YACxB,IAAI,KAAK,YAAY,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,4BAA4B,EAAE,CAAC;gBAC5E,MAAM,gBAAgB,GAAI,KAAK,CAAC,IAAqC,CAAC,gBAAgB,CAAC;gBACvF,MAAM,aAAa,GAAG,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,CAAC;gBAEhG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YACjG,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { strict as assert } from 'node:assert';
|
|
8
8
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
9
|
-
import { Lifecycle, Messages, ScratchOrgCache, scratchOrgLifecycleEventName, scratchOrgResume, SfError, } from '@salesforce/core';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { Status } from '../../../components/stages.js';
|
|
9
|
+
import { Lifecycle, Messages, ScratchOrgCache, scratchOrgLifecycleEventName, scratchOrgLifecycleStages, scratchOrgResume, SfError, } from '@salesforce/core';
|
|
10
|
+
import terminalLink from 'terminal-link';
|
|
11
|
+
import { MultiStageRenderer } from '../../../components/stages.js';
|
|
13
12
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
14
13
|
const messages = Messages.loadMessages('@salesforce/plugin-org', 'resume_scratch');
|
|
15
14
|
export default class OrgResumeScratch extends SfCommand {
|
|
@@ -42,14 +41,43 @@ export default class OrgResumeScratch extends SfCommand {
|
|
|
42
41
|
throw messages.createError('error.NoRecentJobId');
|
|
43
42
|
// oclif doesn't know that the exactlyOne flag will ensure that one of these is set, and there we definitely have a jobID.
|
|
44
43
|
assert(jobId);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const
|
|
44
|
+
const cached = cache.get(jobId);
|
|
45
|
+
const hubBaseUrl = cached?.hubBaseUrl;
|
|
46
|
+
const ms = new MultiStageRenderer({
|
|
47
|
+
stages: scratchOrgLifecycleStages,
|
|
48
|
+
title: 'Resuming Scratch Org',
|
|
49
|
+
info: [
|
|
50
|
+
{
|
|
51
|
+
label: 'Request Id',
|
|
52
|
+
get: (data) => data.scratchOrgInfo?.Id && terminalLink(data.scratchOrgInfo.Id, `${hubBaseUrl}/${data.scratchOrgInfo.Id}`),
|
|
53
|
+
isBold: true,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'OrgId',
|
|
57
|
+
get: (data) => data.scratchOrgInfo?.ScratchOrg,
|
|
58
|
+
isBold: true,
|
|
59
|
+
color: 'cyan',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'Username',
|
|
63
|
+
get: (data) => data.scratchOrgInfo?.SignupUsername,
|
|
64
|
+
isBold: true,
|
|
65
|
+
color: 'cyan',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Alias',
|
|
69
|
+
get: (data) => data.alias,
|
|
70
|
+
isStatic: true,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
});
|
|
74
|
+
if (!this.jsonEnabled()) {
|
|
75
|
+
ms.start({ alias: cached?.alias });
|
|
76
|
+
}
|
|
48
77
|
lifecycle.on(scratchOrgLifecycleEventName, async (data) => {
|
|
49
|
-
|
|
50
|
-
instance?.rerender(React.createElement(Status, { data: data, baseUrl: hubBaseUrl }));
|
|
78
|
+
ms.goto(data.stage, data);
|
|
51
79
|
if (data.stage === 'done') {
|
|
52
|
-
|
|
80
|
+
ms.stop();
|
|
53
81
|
}
|
|
54
82
|
return Promise.resolve();
|
|
55
83
|
});
|
|
@@ -60,10 +88,7 @@ export default class OrgResumeScratch extends SfCommand {
|
|
|
60
88
|
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
|
|
61
89
|
}
|
|
62
90
|
catch (e) {
|
|
63
|
-
|
|
64
|
-
instance.rerender(React.createElement(Status, { data: scratchOrgLifecycleData, error: e, baseUrl: hubBaseUrl }));
|
|
65
|
-
instance.unmount();
|
|
66
|
-
}
|
|
91
|
+
ms.stop(e);
|
|
67
92
|
if (cache.keys() && e instanceof Error && e.name === 'CacheMissError') {
|
|
68
93
|
// we have something in the cache, but it didn't match what the user passed in
|
|
69
94
|
throw messages.createError('error.jobIdMismatch', [jobId]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/resume/scratch.
|
|
1
|
+
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/resume/scratch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EAEf,4BAA4B,EAC5B,yBAAyB,EACzB,gBAAgB,EAChB,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,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AAE,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7D,CAAC;iBAAM,CAAC;gBACN,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -27,10 +27,5 @@ export declare function SpinnerOrError({ error, labelPosition, ...props }: Spinn
|
|
|
27
27
|
}): React.ReactElement;
|
|
28
28
|
export declare function SpinnerOrErrorOrChildren({ children, error, ...props }: SpinnerProps & {
|
|
29
29
|
readonly children?: React.ReactNode;
|
|
30
|
-
readonly textStyle?: {
|
|
31
|
-
readonly color?: string;
|
|
32
|
-
readonly bold?: boolean;
|
|
33
|
-
};
|
|
34
|
-
readonly text?: string;
|
|
35
30
|
readonly error?: Error;
|
|
36
31
|
}): React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/components/spinner.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,QAA8B,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAgBhC,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,EAAmB;IAC3D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE/B,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE;YAC7B,QAAQ,CAAC,CAAC,aAAa,EAAE,EAAE;gBACzB,MAAM,WAAW,GAAG,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;gBAChE,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC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AK,EACL,GAAG,KAAK,EAIT;IACC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CACL,oBAAC,GAAG;YACD,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,aAAa,KAAK,MAAM,IAAI,oBAAC,IAAI,QAAE,KAAK,CAAC,KAAK,CAAQ;YAC3E,QAAQ;YACR,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,aAAa,KAAK,OAAO,IAAI,oBAAC,IAAI,QAAE,KAAK,CAAC,KAAK,CAAQ,CACzE,CACP,CAAC;IACJ,CAAC;IAED,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,KAAM,KAAK,GAAI,CAAC;AACrD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
1
2
|
import { ScratchOrgLifecycleEvent, SfError } from '@salesforce/core';
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import { Duration } from '@salesforce/kit';
|
|
3
5
|
export declare function Divider({ title, width, padding, titlePadding, titleColor, dividerChar, dividerColor, }: {
|
|
4
6
|
readonly title?: string;
|
|
5
7
|
readonly width?: number | 'full';
|
|
@@ -11,15 +13,18 @@ export declare function Divider({ title, width, padding, titlePadding, titleColo
|
|
|
11
13
|
}): React.ReactNode;
|
|
12
14
|
export declare function Timer(props: {
|
|
13
15
|
readonly color?: string;
|
|
16
|
+
readonly isStopped?: boolean;
|
|
14
17
|
}): React.ReactNode;
|
|
15
18
|
export declare function Space({ repeat }: {
|
|
16
19
|
readonly repeat?: number;
|
|
17
20
|
}): React.ReactNode;
|
|
18
21
|
export declare function Stages(props: {
|
|
22
|
+
readonly info?: FormattedInfo[];
|
|
19
23
|
readonly currentStage: string;
|
|
20
24
|
readonly stages: string[] | readonly string[];
|
|
21
25
|
readonly title: string;
|
|
22
26
|
readonly error?: SfError | Error | undefined;
|
|
27
|
+
readonly timeout?: Duration | undefined;
|
|
23
28
|
}): React.ReactNode;
|
|
24
29
|
export declare function Status(props: {
|
|
25
30
|
readonly data?: ScratchOrgLifecycleEvent;
|
|
@@ -27,3 +32,41 @@ export declare function Status(props: {
|
|
|
27
32
|
readonly isAsync?: boolean;
|
|
28
33
|
readonly error?: SfError | Error | undefined;
|
|
29
34
|
}): React.ReactNode;
|
|
35
|
+
type Info<T extends Record<string, unknown>> = {
|
|
36
|
+
color?: string;
|
|
37
|
+
get?: (data: T) => string | undefined;
|
|
38
|
+
isBold?: boolean;
|
|
39
|
+
isStatic?: boolean;
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
type FormattedInfo = {
|
|
43
|
+
readonly color?: string;
|
|
44
|
+
readonly isBold?: boolean;
|
|
45
|
+
readonly isStatic?: boolean;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
readonly value: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
type MultiStageRendererOptions<T extends Record<string, unknown>> = {
|
|
50
|
+
readonly stages: readonly string[] | string[];
|
|
51
|
+
readonly title: string;
|
|
52
|
+
readonly info?: Array<Info<T>>;
|
|
53
|
+
};
|
|
54
|
+
export declare class MultiStageRenderer<T extends Record<string, unknown>> implements Disposable {
|
|
55
|
+
private currentStage;
|
|
56
|
+
private data?;
|
|
57
|
+
private readonly info?;
|
|
58
|
+
private readonly stages;
|
|
59
|
+
private readonly title;
|
|
60
|
+
private instance;
|
|
61
|
+
constructor({ info, stages, title }: MultiStageRendererOptions<T>);
|
|
62
|
+
start(data?: Partial<T>): void;
|
|
63
|
+
next(data?: Partial<T>): void;
|
|
64
|
+
previous(data?: Partial<T>): void;
|
|
65
|
+
goto(stage: string, data?: Partial<T>): void;
|
|
66
|
+
last(data?: Partial<T>): void;
|
|
67
|
+
stop(error?: Error | SfError): void;
|
|
68
|
+
[Symbol.dispose](): void;
|
|
69
|
+
private update;
|
|
70
|
+
private formatInfo;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
package/lib/components/stages.js
CHANGED
|
@@ -5,35 +5,33 @@
|
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
7
|
import { scratchOrgLifecycleStages } from '@salesforce/core';
|
|
8
|
-
import { Box, Text } from 'ink';
|
|
8
|
+
import { Box, render, Text } from 'ink';
|
|
9
9
|
import { capitalCase } from 'change-case';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import terminalLink from 'terminal-link';
|
|
12
|
+
import { Performance } from '@oclif/core';
|
|
12
13
|
import { SpinnerOrError, SpinnerOrErrorOrChildren } from './spinner.js';
|
|
13
14
|
function round(value, decimals = 2) {
|
|
14
|
-
|
|
15
|
+
const factor = Math.pow(10, decimals);
|
|
16
|
+
return (Math.round(value * factor) / factor).toFixed(decimals);
|
|
15
17
|
}
|
|
16
|
-
function timeInMostReadableFormat(time) {
|
|
18
|
+
function timeInMostReadableFormat(time, decimals = 2) {
|
|
17
19
|
// if time < 1000ms, return time in ms
|
|
18
20
|
if (time < 1000) {
|
|
19
21
|
return `${time}ms`;
|
|
20
22
|
}
|
|
21
23
|
// if time < 60s, return time in seconds
|
|
22
24
|
if (time < 60_000) {
|
|
23
|
-
return `${round(time / 1000)}s`;
|
|
25
|
+
return `${round(time / 1000, decimals)}s`;
|
|
24
26
|
}
|
|
25
|
-
// if time < 60m, return time in minutes
|
|
27
|
+
// if time < 60m, return time in minutes and seconds
|
|
26
28
|
if (time < 3_600_000) {
|
|
27
|
-
|
|
29
|
+
const minutes = Math.floor(time / 60_000);
|
|
30
|
+
const seconds = round((time % 60_000) / 1000, 0);
|
|
31
|
+
return `${minutes}m ${seconds}s`;
|
|
28
32
|
}
|
|
29
33
|
return time.toString();
|
|
30
34
|
}
|
|
31
|
-
function diff(start, end) {
|
|
32
|
-
if (!start || !end) {
|
|
33
|
-
return '0ms';
|
|
34
|
-
}
|
|
35
|
-
return timeInMostReadableFormat(end.getTime() - start.getTime());
|
|
36
|
-
}
|
|
37
35
|
const getSideDividerWidth = (width, titleWidth) => (width - titleWidth) / 2;
|
|
38
36
|
const getNumberOfCharsPerWidth = (char, width) => width / char.length;
|
|
39
37
|
const PAD = ' ';
|
|
@@ -60,63 +58,139 @@ export function Timer(props) {
|
|
|
60
58
|
const interval = 10;
|
|
61
59
|
React.useEffect(() => {
|
|
62
60
|
const intervalId = setInterval(() => {
|
|
63
|
-
|
|
61
|
+
if (!props.isStopped) {
|
|
62
|
+
setTime((prevTime) => prevTime + interval);
|
|
63
|
+
}
|
|
64
64
|
}, interval);
|
|
65
65
|
return () => {
|
|
66
66
|
clearInterval(intervalId);
|
|
67
67
|
};
|
|
68
|
-
}, [interval]);
|
|
68
|
+
}, [interval, props.isStopped]);
|
|
69
|
+
if (props.isStopped) {
|
|
70
|
+
return React.createElement(Text, { ...props }, timeInMostReadableFormat(time));
|
|
71
|
+
}
|
|
69
72
|
return React.createElement(Text, { ...props }, timeInMostReadableFormat(time));
|
|
70
73
|
}
|
|
71
74
|
export function Space({ repeat = 1 }) {
|
|
72
75
|
return React.createElement(Text, null, ' '.repeat(repeat));
|
|
73
76
|
}
|
|
77
|
+
function StaticKeyValue({ label, value, isBold, color, isStatic }) {
|
|
78
|
+
if (!value || !isStatic)
|
|
79
|
+
return;
|
|
80
|
+
return (React.createElement(Box, null,
|
|
81
|
+
React.createElement(Text, { bold: isBold },
|
|
82
|
+
label,
|
|
83
|
+
": "),
|
|
84
|
+
React.createElement(Text, { color: color }, value)));
|
|
85
|
+
}
|
|
86
|
+
// How to integrate with telemetry?
|
|
74
87
|
export function Stages(props) {
|
|
75
|
-
const
|
|
88
|
+
const markers = new Map();
|
|
89
|
+
const spinnerType = process.platform === 'win32' ? 'line' : 'arc';
|
|
76
90
|
return (React.createElement(Box, { flexDirection: "column", paddingTop: 1 },
|
|
77
91
|
React.createElement(Divider, { title: props.title }),
|
|
78
92
|
React.createElement(Box, { flexDirection: "column", paddingTop: 1, marginLeft: 1 }, props.stages.map((stage, stageIndex) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
React.createElement(Space, null),
|
|
88
|
-
React.createElement(Timer, { color: "dim" })));
|
|
93
|
+
const isCurrent = props.currentStage === stage && stageIndex < props.stages.length - 1;
|
|
94
|
+
const isCompleted = !isCurrent && props.stages.indexOf(props.currentStage) >= stageIndex;
|
|
95
|
+
const isFuture = !isCompleted && !isCurrent && props.stages.indexOf(props.currentStage) < stageIndex;
|
|
96
|
+
if (isCurrent) {
|
|
97
|
+
markers.set(stage, Performance.mark('plugin-org', stage));
|
|
98
|
+
}
|
|
99
|
+
if (isCompleted) {
|
|
100
|
+
markers.get(stage)?.stop();
|
|
89
101
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
timings[stage].end = new Date();
|
|
94
|
-
setTimings({ ...timings });
|
|
95
|
-
}
|
|
96
|
-
return (React.createElement(Box, { key: stage },
|
|
102
|
+
return (React.createElement(Box, { key: stage },
|
|
103
|
+
isCurrent && React.createElement(SpinnerOrError, { error: props.error, type: "dots2", label: capitalCase(stage) }),
|
|
104
|
+
isCompleted && (React.createElement(Box, null,
|
|
97
105
|
React.createElement(Text, { color: "green" }, "\u2713 "),
|
|
98
106
|
React.createElement(Text, null,
|
|
99
107
|
capitalCase(stage),
|
|
100
|
-
" "),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
" "))),
|
|
109
|
+
isFuture && React.createElement(Text, { color: "dim" },
|
|
110
|
+
"\u25FC ",
|
|
111
|
+
capitalCase(stage)),
|
|
112
|
+
!isFuture && (React.createElement(Box, null,
|
|
113
|
+
React.createElement(Space, null),
|
|
114
|
+
React.createElement(Timer, { color: "dim", isStopped: isCompleted })))));
|
|
107
115
|
})),
|
|
108
116
|
React.createElement(Box, { paddingTop: 1, marginLeft: 1 },
|
|
109
117
|
React.createElement(Text, null, "Elapsed Time: "),
|
|
110
|
-
React.createElement(Timer, null))
|
|
118
|
+
React.createElement(Timer, null)),
|
|
119
|
+
React.createElement(Box, { flexDirection: "column", paddingTop: 1, marginLeft: 1 }, props.info?.map((info) => info.isStatic ? (React.createElement(StaticKeyValue, { key: info.label, ...info })) : (React.createElement(SpinnerOrErrorOrChildren, { key: info.label, label: `${info.label}: `, labelPosition: "left", error: props.error, type: spinnerType }, info.value && (React.createElement(Text, { bold: info.isBold, color: info.color }, info.value))))))));
|
|
111
120
|
}
|
|
112
121
|
export function Status(props) {
|
|
113
122
|
if (!props.data)
|
|
114
123
|
return;
|
|
124
|
+
const spinnerType = process.platform === 'win32' ? 'line' : 'arc';
|
|
115
125
|
return (React.createElement(Box, { flexDirection: "column" },
|
|
116
126
|
React.createElement(Stages, { title: props.isAsync ? 'Creating Scratch Org (async)' : 'Creating Scratch Org', currentStage: props.data.stage, stages: props.isAsync ? ['prepare request', 'send request', 'done'] : scratchOrgLifecycleStages, error: props.error }),
|
|
117
127
|
React.createElement(Box, { flexDirection: "column", paddingTop: 1, marginLeft: 1 },
|
|
118
|
-
React.createElement(SpinnerOrErrorOrChildren, { label: "Request Id: ", labelPosition: "left", error: props.error, type:
|
|
119
|
-
React.createElement(SpinnerOrErrorOrChildren, { label: "OrgId: ", labelPosition: "left", error: props.error, type:
|
|
120
|
-
React.createElement(SpinnerOrErrorOrChildren, { label: "Username: ", labelPosition: "left", error: props.error, type:
|
|
128
|
+
React.createElement(SpinnerOrErrorOrChildren, { label: "Request Id: ", labelPosition: "left", error: props.error, type: spinnerType }, props.data?.scratchOrgInfo?.Id && (React.createElement(Text, { bold: true }, terminalLink(props.data?.scratchOrgInfo?.Id, `${props.baseUrl}/${props.data?.scratchOrgInfo?.Id}`)))),
|
|
129
|
+
React.createElement(SpinnerOrErrorOrChildren, { label: "OrgId: ", labelPosition: "left", error: props.error, type: spinnerType }, props.data?.scratchOrgInfo?.ScratchOrg && (React.createElement(Text, { bold: true, color: "cyan" }, props.data?.scratchOrgInfo?.ScratchOrg))),
|
|
130
|
+
React.createElement(SpinnerOrErrorOrChildren, { label: "Username: ", labelPosition: "left", error: props.error, type: spinnerType }, props.data?.scratchOrgInfo?.SignupUsername && (React.createElement(Text, { bold: true, color: "cyan" }, props.data?.scratchOrgInfo?.SignupUsername))))));
|
|
131
|
+
}
|
|
132
|
+
export class MultiStageRenderer {
|
|
133
|
+
currentStage;
|
|
134
|
+
data;
|
|
135
|
+
info;
|
|
136
|
+
stages;
|
|
137
|
+
title;
|
|
138
|
+
instance;
|
|
139
|
+
constructor({ info, stages, title }) {
|
|
140
|
+
this.stages = stages;
|
|
141
|
+
this.title = title;
|
|
142
|
+
this.info = info;
|
|
143
|
+
this.currentStage = stages[0];
|
|
144
|
+
}
|
|
145
|
+
start(data) {
|
|
146
|
+
this.data = { ...this.data, ...data };
|
|
147
|
+
this.instance = render(React.createElement(Stages, { info: this.formatInfo(), currentStage: this.stages[0], stages: this.stages, title: this.title }), { debug: false });
|
|
148
|
+
}
|
|
149
|
+
next(data) {
|
|
150
|
+
const nextStageIndex = this.stages.indexOf(this.currentStage) + 1;
|
|
151
|
+
if (nextStageIndex < this.stages.length) {
|
|
152
|
+
this.update(this.stages[nextStageIndex], data);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
previous(data) {
|
|
156
|
+
const previousStageIndex = this.stages.indexOf(this.currentStage) - 1;
|
|
157
|
+
if (previousStageIndex >= 0) {
|
|
158
|
+
this.update(this.stages[previousStageIndex], data);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
goto(stage, data) {
|
|
162
|
+
if (this.stages.includes(stage)) {
|
|
163
|
+
this.update(stage, data);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
last(data) {
|
|
167
|
+
this.update(this.stages[this.stages.length - 1], data);
|
|
168
|
+
}
|
|
169
|
+
stop(error) {
|
|
170
|
+
if (error) {
|
|
171
|
+
this.instance?.rerender(React.createElement(Stages, { info: this.formatInfo(), currentStage: this.currentStage ?? this.stages[0], stages: this.stages, title: this.title, error: error }));
|
|
172
|
+
}
|
|
173
|
+
this.instance?.unmount();
|
|
174
|
+
}
|
|
175
|
+
[Symbol.dispose]() {
|
|
176
|
+
this.instance?.unmount();
|
|
177
|
+
}
|
|
178
|
+
update(stage, data) {
|
|
179
|
+
this.currentStage = stage;
|
|
180
|
+
this.data = { ...this.data, ...data };
|
|
181
|
+
this.instance?.rerender(React.createElement(Stages, { info: this.formatInfo(), currentStage: this.currentStage, stages: this.stages, title: this.title }));
|
|
182
|
+
}
|
|
183
|
+
formatInfo() {
|
|
184
|
+
return (this.info?.map((info) => {
|
|
185
|
+
const formattedData = info.get ? info.get(this.data) : undefined;
|
|
186
|
+
return {
|
|
187
|
+
value: formattedData,
|
|
188
|
+
label: info.label,
|
|
189
|
+
isBold: info.isBold,
|
|
190
|
+
color: info.color,
|
|
191
|
+
isStatic: info.isStatic,
|
|
192
|
+
};
|
|
193
|
+
}) ?? []);
|
|
194
|
+
}
|
|
121
195
|
}
|
|
122
196
|
//# sourceMappingURL=stages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stages.js","sourceRoot":"","sources":["../../src/components/stages.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4B,yBAAyB,EAAW,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"stages.js","sourceRoot":"","sources":["../../src/components/stages.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4B,yBAAyB,EAAW,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAE,GAAG,EAAY,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,eAAe,CAAC;AAEz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AAC,IAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,OAAO;gBACL,KAAK,EAAE,aAAa;gBACpB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC;QACJ,CAAC,CAAC,IAAI,EAAE,CACT,CAAC;IACJ,CAAC;CACF"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "4.3.6-dev.
|
|
4
|
+
"version": "4.3.6-dev.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"exports": "./lib/index.js",
|
|
243
243
|
"type": "module",
|
|
244
244
|
"sfdx": {
|
|
245
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.3.6-dev.
|
|
246
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.3.6-dev.
|
|
245
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.3.6-dev.1.crt",
|
|
246
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.3.6-dev.1.sig"
|
|
247
247
|
}
|
|
248
248
|
}
|