sfdx-jayree 4.3.3 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +21 -21
- package/lib/src/commands/jayree/packagedescription/set.js +1 -1
- package/lib/src/commands/jayree/packagedescription/set.js.map +1 -1
- package/lib/src/utils/puppeteer/statetasks.js +3 -3
- package/lib/src/utils/renderer.d.ts +38 -43
- package/lib/src/utils/renderer.js +57 -30
- package/lib/src/utils/renderer.js.map +1 -1
- package/lib/src/utils/xml.js +11 -14
- package/lib/src/utils/xml.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +21 -22
- package/yarn.lock +544 -497
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [4.3.7](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.6...v4.3.7) (2022-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **configurestate:** fix org:configure:state error ([a3efaa9](https://github.com/jayree/sfdx-jayree-plugin/commit/a3efaa96e55b832071978dd77b05cbaae85008e2))
|
|
7
|
+
* update dependencies ([91ab401](https://github.com/jayree/sfdx-jayree-plugin/commit/91ab401405a86d6e6c553f1342108d95a7acdad9))
|
|
8
|
+
|
|
9
|
+
## [4.3.6](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.5...v4.3.6) (2022-01-06)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* downgrade cli-ux ([48eaf68](https://github.com/jayree/sfdx-jayree-plugin/commit/48eaf686d9e8ad96552c46c2b65cc01a6383a468))
|
|
15
|
+
|
|
16
|
+
## [4.3.5](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.4...v4.3.5) (2021-12-23)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* set node version to 14.17.1 ([ab84448](https://github.com/jayree/sfdx-jayree-plugin/commit/ab844487df2356f59521edd6647d3d52d19b217b))
|
|
22
|
+
|
|
23
|
+
## [4.3.4](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.3...v4.3.4) (2021-12-22)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* update dependencies ([8faab40](https://github.com/jayree/sfdx-jayree-plugin/commit/8faab40d100e0cdc91c46011f1cfc307410f4b9e))
|
|
29
|
+
|
|
1
30
|
## [4.3.3](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.2...v4.3.3) (2021-12-19)
|
|
2
31
|
|
|
3
32
|
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ $ sfdx plugins:install sfdx-jayree
|
|
|
26
26
|
$ sfdx jayree:COMMAND
|
|
27
27
|
running command...
|
|
28
28
|
$ sfdx plugins
|
|
29
|
-
sfdx-jayree 4.3.
|
|
29
|
+
sfdx-jayree 4.3.7
|
|
30
30
|
$ sfdx help jayree:COMMAND
|
|
31
31
|
USAGE
|
|
32
32
|
$ sfdx jayree:COMMAND
|
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
❯ ChangeSet1
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/jayree/automation/changeset/deploy.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
111
|
+
_See code: [src/commands/jayree/automation/changeset/deploy.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/automation/changeset/deploy.ts)_
|
|
112
112
|
|
|
113
113
|
### `sfdx jayree:automation:changeset:list`
|
|
114
114
|
|
|
@@ -132,7 +132,7 @@ OPTIONS
|
|
|
132
132
|
this command invocation
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/jayree/automation/changeset/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
135
|
+
_See code: [src/commands/jayree/automation/changeset/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/automation/changeset/list.ts)_
|
|
136
136
|
|
|
137
137
|
### `sfdx jayree:automation:ltngsync:status`
|
|
138
138
|
|
|
@@ -173,7 +173,7 @@ EXAMPLE
|
|
|
173
173
|
userContacts/userEvents: Exchange to Salesforce sync status... Initial sync completed/Initial sync completed
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
_See code: [src/commands/jayree/automation/ltngsync/status.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
176
|
+
_See code: [src/commands/jayree/automation/ltngsync/status.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/automation/ltngsync/status.ts)_
|
|
177
177
|
|
|
178
178
|
### `sfdx jayree:flowtestcoverage`
|
|
179
179
|
|
|
@@ -203,7 +203,7 @@ EXAMPLE
|
|
|
203
203
|
...
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
206
|
+
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/flowtestcoverage.ts)_
|
|
207
207
|
|
|
208
208
|
### `sfdx jayree:manifest:cleanup`
|
|
209
209
|
|
|
@@ -233,7 +233,7 @@ EXAMPLE
|
|
|
233
233
|
$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
236
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.8/commands/jayree/manifest/cleanup.ts)_
|
|
237
237
|
|
|
238
238
|
### `sfdx jayree:manifest:generate`
|
|
239
239
|
|
|
@@ -284,7 +284,7 @@ EXAMPLES
|
|
|
284
284
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
287
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.8/commands/jayree/manifest/generate.ts)_
|
|
288
288
|
|
|
289
289
|
### `sfdx jayree:manifest:git:diff`
|
|
290
290
|
|
|
@@ -334,7 +334,7 @@ EXAMPLES
|
|
|
334
334
|
uses the diff of what is unique in branchB (REF2)
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
337
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.8/commands/jayree/manifest/git/diff.ts)_
|
|
338
338
|
|
|
339
339
|
### `sfdx jayree:org:configure`
|
|
340
340
|
|
|
@@ -373,7 +373,7 @@ EXAMPLE
|
|
|
373
373
|
$ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"
|
|
374
374
|
```
|
|
375
375
|
|
|
376
|
-
_See code: [src/commands/jayree/org/configure/index.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
376
|
+
_See code: [src/commands/jayree/org/configure/index.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/org/configure/index.ts)_
|
|
377
377
|
|
|
378
378
|
### `sfdx jayree:org:configure:country`
|
|
379
379
|
|
|
@@ -400,7 +400,7 @@ ALIASES
|
|
|
400
400
|
$ sfdx jayree:automation:country:update
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
_See code: [src/commands/jayree/org/configure/country.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
403
|
+
_See code: [src/commands/jayree/org/configure/country.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/org/configure/country.ts)_
|
|
404
404
|
|
|
405
405
|
### `sfdx jayree:org:configure:state`
|
|
406
406
|
|
|
@@ -439,7 +439,7 @@ ALIASES
|
|
|
439
439
|
$ sfdx jayree:automation:state:import
|
|
440
440
|
```
|
|
441
441
|
|
|
442
|
-
_See code: [src/commands/jayree/org/configure/state.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
442
|
+
_See code: [src/commands/jayree/org/configure/state.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/org/configure/state.ts)_
|
|
443
443
|
|
|
444
444
|
### `sfdx jayree:org:settings`
|
|
445
445
|
|
|
@@ -477,7 +477,7 @@ EXAMPLE
|
|
|
477
477
|
$ sfdx jayree:org:settings -u MyTestOrg1 -w
|
|
478
478
|
```
|
|
479
479
|
|
|
480
|
-
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
480
|
+
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/org/settings.ts)_
|
|
481
481
|
|
|
482
482
|
### `sfdx jayree:org:streaming`
|
|
483
483
|
|
|
@@ -507,7 +507,7 @@ EXAMPLE
|
|
|
507
507
|
...
|
|
508
508
|
```
|
|
509
509
|
|
|
510
|
-
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
510
|
+
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/org/streaming.ts)_
|
|
511
511
|
|
|
512
512
|
### `sfdx jayree:packagedescription:create`
|
|
513
513
|
|
|
@@ -530,7 +530,7 @@ EXAMPLE
|
|
|
530
530
|
$ sfdx jayree:packagedescription:create --file FILENAME --description 'DESCRIPTION'
|
|
531
531
|
```
|
|
532
532
|
|
|
533
|
-
_See code: [src/commands/jayree/packagedescription/create.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
533
|
+
_See code: [src/commands/jayree/packagedescription/create.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/packagedescription/create.ts)_
|
|
534
534
|
|
|
535
535
|
### `sfdx jayree:packagedescription:get`
|
|
536
536
|
|
|
@@ -553,7 +553,7 @@ EXAMPLE
|
|
|
553
553
|
Description of Package FILENAME
|
|
554
554
|
```
|
|
555
555
|
|
|
556
|
-
_See code: [src/commands/jayree/packagedescription/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
556
|
+
_See code: [src/commands/jayree/packagedescription/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/packagedescription/get.ts)_
|
|
557
557
|
|
|
558
558
|
### `sfdx jayree:packagedescription:remove`
|
|
559
559
|
|
|
@@ -575,7 +575,7 @@ EXAMPLE
|
|
|
575
575
|
$ sfdx jayree:packagedescription:remove --file FILENAME
|
|
576
576
|
```
|
|
577
577
|
|
|
578
|
-
_See code: [src/commands/jayree/packagedescription/remove.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
578
|
+
_See code: [src/commands/jayree/packagedescription/remove.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/packagedescription/remove.ts)_
|
|
579
579
|
|
|
580
580
|
### `sfdx jayree:packagedescription:set`
|
|
581
581
|
|
|
@@ -598,7 +598,7 @@ EXAMPLE
|
|
|
598
598
|
$ sfdx jayree:packagedescription:set --file FILENAME --description 'NEW DESCRIPTION'
|
|
599
599
|
```
|
|
600
600
|
|
|
601
|
-
_See code: [src/commands/jayree/packagedescription/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
601
|
+
_See code: [src/commands/jayree/packagedescription/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/packagedescription/set.ts)_
|
|
602
602
|
|
|
603
603
|
### `sfdx jayree:source:fix`
|
|
604
604
|
|
|
@@ -630,7 +630,7 @@ DESCRIPTION
|
|
|
630
630
|
(examples will follow)
|
|
631
631
|
```
|
|
632
632
|
|
|
633
|
-
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
633
|
+
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/source/fix.ts)_
|
|
634
634
|
|
|
635
635
|
### `sfdx jayree:source:tracking:list`
|
|
636
636
|
|
|
@@ -662,7 +662,7 @@ EXAMPLE
|
|
|
662
662
|
$ sfdx jayree:source:tracking:list -u me@my.org -r 101
|
|
663
663
|
```
|
|
664
664
|
|
|
665
|
-
_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
665
|
+
_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/source/tracking/list.ts)_
|
|
666
666
|
|
|
667
667
|
### `sfdx jayree:source:tracking:store:get`
|
|
668
668
|
|
|
@@ -690,7 +690,7 @@ EXAMPLE
|
|
|
690
690
|
$ sfdx jayree:source:tracking:store:get -u me@my.org
|
|
691
691
|
```
|
|
692
692
|
|
|
693
|
-
_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
693
|
+
_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/source/tracking/store/get.ts)_
|
|
694
694
|
|
|
695
695
|
### `sfdx jayree:source:tracking:store:set`
|
|
696
696
|
|
|
@@ -722,7 +722,7 @@ EXAMPLE
|
|
|
722
722
|
$ sfdx jayree:source:tracking:store:set -u MyTestOrg1 -r 101
|
|
723
723
|
```
|
|
724
724
|
|
|
725
|
-
_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
725
|
+
_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.7/src/commands/jayree/source/tracking/store/set.ts)_
|
|
726
726
|
<!-- commandsstop -->
|
|
727
727
|
|
|
728
728
|
## Hooks
|
|
@@ -36,7 +36,7 @@ class SetPackageDescription extends command_1.SfdxCommand {
|
|
|
36
36
|
}
|
|
37
37
|
xml.Package['description'] = text;
|
|
38
38
|
this.ux.log(action + ' description: ' + text);
|
|
39
|
-
newZip.addFile(fileName, Buffer.from((0, xml_1.js2Manifest)(xml)), '', 0o644);
|
|
39
|
+
newZip.addFile(fileName, Buffer.from((0, xml_1.js2Manifest)({ Package: xml.Package })), '', 0o644);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
newZip.addFile(fileName, fileContent, '', 0o644);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/packagedescription/set.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,iDAAyD;AACzD,2CAA4C;AAE5C,mEAA6B;AAC7B,4CAAgE;AAEhE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC;AAE/E,MAAqB,qBAAsB,SAAQ,qBAAW;IA+B5D,4DAA4D;IACrD,KAAK,CAAC,GAAG;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACpD,MAAM,MAAM,GAAG,IAAI,iBAAM,EAAE,C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C/B,qCAAe,GAAG,KAAK,CAAC"}
|
|
@@ -89,9 +89,9 @@ class PuppeteerStateTasks {
|
|
|
89
89
|
await page.goto('https://www.iso.org/obp/ui/#search', {
|
|
90
90
|
waitUntil: 'networkidle0',
|
|
91
91
|
});
|
|
92
|
-
await page.waitForSelector('#gwt-uid-
|
|
93
|
-
await page.click('#gwt-uid-
|
|
94
|
-
await page.evaluate(() => document.querySelector('#gwt-uid-
|
|
92
|
+
await page.waitForSelector('#gwt-uid-23');
|
|
93
|
+
await page.click('#gwt-uid-23');
|
|
94
|
+
await page.evaluate(() => document.querySelector('#gwt-uid-23')['checked']);
|
|
95
95
|
await page.click('.go');
|
|
96
96
|
await page.waitForSelector('.v-grid-tablewrapper');
|
|
97
97
|
await page.select('.v-select-select', '8');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ListrRenderer } from 'listr2';
|
|
2
|
-
import { Task } from 'listr2/dist/lib/task';
|
|
1
|
+
import { ListrRenderer, ListrTaskObject } from 'listr2';
|
|
3
2
|
/** Default updating renderer for Listr2 */
|
|
4
3
|
export declare class MyDefaultRenderer implements ListrRenderer {
|
|
5
|
-
tasks: Array<
|
|
4
|
+
tasks: Array<ListrTaskObject<any, typeof MyDefaultRenderer>>;
|
|
6
5
|
options: typeof MyDefaultRenderer['rendererOptions'];
|
|
7
|
-
renderHook$?:
|
|
6
|
+
renderHook$?: ListrTaskObject<any, any>['renderHook$'];
|
|
8
7
|
/** designates whether this renderer can output to a non-tty console */
|
|
9
8
|
static nonTTY: boolean;
|
|
10
9
|
/** renderer options for the defauult renderer */
|
|
@@ -16,40 +15,39 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
16
15
|
*/
|
|
17
16
|
indentation?: number;
|
|
18
17
|
/**
|
|
19
|
-
* clear output when task finishes
|
|
18
|
+
* clear all the output generated by the renderer when the task finishes its execution
|
|
20
19
|
*
|
|
21
20
|
* @default false
|
|
22
|
-
* @global global option that can not be temperated with
|
|
21
|
+
* @global global option that can not be temperated with subtasks
|
|
23
22
|
*/
|
|
24
23
|
clearOutput?: boolean;
|
|
25
24
|
/**
|
|
26
|
-
* show the subtasks of the current task
|
|
25
|
+
* show the subtasks of the current task
|
|
27
26
|
*
|
|
28
27
|
* @default true
|
|
29
|
-
* @global global option that can not be temperated with from subtasks
|
|
30
28
|
*/
|
|
31
29
|
showSubtasks?: boolean;
|
|
32
30
|
/**
|
|
33
|
-
* collapse subtasks after
|
|
31
|
+
* collapse subtasks after current task completes its execution
|
|
34
32
|
*
|
|
35
33
|
* @default true
|
|
36
34
|
*/
|
|
37
35
|
collapse?: boolean;
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
* show skip messages or show the original title of the task, this will also disable collapseSkips mode
|
|
38
|
+
*
|
|
39
|
+
* You can disable showing the skip messages, even though you passed in a message by settings this option,
|
|
40
|
+
* if you want to keep the original task title intact.
|
|
40
41
|
*
|
|
41
42
|
* @default true
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
showSkipMessage?: boolean;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* You can disable showing the skip messages, eventhough you passed in a message by settings this option,
|
|
48
|
-
* if you want to keep the original task title intacted.
|
|
46
|
+
* collapse skip messages into a single message and overwrite the task title
|
|
49
47
|
*
|
|
50
48
|
* @default true
|
|
51
49
|
*/
|
|
52
|
-
|
|
50
|
+
collapseSkips?: boolean;
|
|
53
51
|
/**
|
|
54
52
|
* suffix skip messages with [SKIPPED] when in collapseSkips mode
|
|
55
53
|
*
|
|
@@ -57,19 +55,19 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
57
55
|
*/
|
|
58
56
|
suffixSkips?: boolean;
|
|
59
57
|
/**
|
|
60
|
-
*
|
|
58
|
+
* shows the thrown error message or show the original title of the task, this will also disable collapseErrors mode
|
|
59
|
+
* You can disable showing the error messages, even though you passed in a message by settings this option,
|
|
60
|
+
* if you want to keep the original task title intact.
|
|
61
61
|
*
|
|
62
62
|
* @default true
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
showErrorMessage?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* You can disable showing the error messages, eventhough you passed in a message by settings this option,
|
|
68
|
-
* if you want to keep the original task title intacted.
|
|
66
|
+
* collapse error messages into a single message and overwrite the task title
|
|
69
67
|
*
|
|
70
68
|
* @default true
|
|
71
69
|
*/
|
|
72
|
-
|
|
70
|
+
collapseErrors?: boolean;
|
|
73
71
|
/**
|
|
74
72
|
* suffix retry messages with [RETRY-${COUNT}] when retry is enabled for a task
|
|
75
73
|
*
|
|
@@ -77,22 +75,20 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
77
75
|
*/
|
|
78
76
|
suffixRetries?: boolean;
|
|
79
77
|
/**
|
|
80
|
-
* only update
|
|
78
|
+
* only update through triggers from renderhook
|
|
81
79
|
*
|
|
82
|
-
* useful for tests and stuff. this will disable showing spinner and only update the screen if
|
|
80
|
+
* useful for tests and stuff. this will disable showing spinner and only update the screen if something else has
|
|
83
81
|
* happened in the task worthy to show
|
|
84
82
|
*
|
|
85
83
|
* @default false
|
|
86
|
-
* @global global option that can not be temperated with
|
|
84
|
+
* @global global option that can not be temperated with subtasks
|
|
87
85
|
*/
|
|
88
86
|
lazy?: boolean;
|
|
89
87
|
/**
|
|
90
88
|
* show duration for all tasks
|
|
91
89
|
*
|
|
92
|
-
* overwrites per task renderer options
|
|
93
|
-
*
|
|
94
90
|
* @default false
|
|
95
|
-
* @global global option that can not be temperated with
|
|
91
|
+
* @global global option that can not be temperated with subtasks
|
|
96
92
|
*/
|
|
97
93
|
showTimer?: boolean;
|
|
98
94
|
/**
|
|
@@ -103,10 +99,9 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
103
99
|
removeEmptyLines?: boolean;
|
|
104
100
|
/**
|
|
105
101
|
* formats data output depending on your requirements.
|
|
106
|
-
* log-update mostly breaks if there is no wrap, so there is many options to choose your preference
|
|
107
102
|
*
|
|
108
103
|
* @default 'truncate'
|
|
109
|
-
* @global global option that can not be temperated with
|
|
104
|
+
* @global global option that can not be temperated with subtasks
|
|
110
105
|
*/
|
|
111
106
|
formatOutput?: 'truncate' | 'wrap';
|
|
112
107
|
/**
|
|
@@ -125,14 +120,14 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
125
120
|
/** per task options for the default renderer */
|
|
126
121
|
static rendererTaskOptions: {
|
|
127
122
|
/**
|
|
128
|
-
* write task output to bottom bar instead of the gap under the task title itself.
|
|
129
|
-
* useful for stream of data.
|
|
123
|
+
* write task output to the bottom bar instead of the gap under the task title itself.
|
|
124
|
+
* useful for a stream of data.
|
|
130
125
|
*
|
|
131
126
|
* @default false
|
|
132
127
|
*
|
|
133
|
-
* `true` only keep 1 line of latest data outputted by the task.
|
|
134
|
-
* `false` only keep 1 line of latest data outputted by the task.
|
|
135
|
-
* `number` will keep designated data of latest data outputted by the task.
|
|
128
|
+
* `true` only keep 1 line of the latest data outputted by the task.
|
|
129
|
+
* `false` only keep 1 line of the latest data outputted by the task.
|
|
130
|
+
* `number` will keep designated data of the latest data outputted by the task.
|
|
136
131
|
*/
|
|
137
132
|
bottomBar?: boolean | number;
|
|
138
133
|
/**
|
|
@@ -140,7 +135,7 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
140
135
|
*
|
|
141
136
|
* @default false
|
|
142
137
|
*
|
|
143
|
-
* works both for bottom bar and the default behavior
|
|
138
|
+
* works both for the bottom bar and the default behavior
|
|
144
139
|
*/
|
|
145
140
|
persistentOutput?: boolean;
|
|
146
141
|
/**
|
|
@@ -156,13 +151,13 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
156
151
|
private taskTime;
|
|
157
152
|
private currentTasks;
|
|
158
153
|
private hiddenTasks;
|
|
159
|
-
constructor(tasks: Array<
|
|
160
|
-
getTaskOptions(task:
|
|
161
|
-
isBottomBar(task:
|
|
162
|
-
hasPersistentOutput(task:
|
|
163
|
-
hasTimer(task:
|
|
164
|
-
getSelfOrParentOption<T extends keyof typeof MyDefaultRenderer['rendererOptions']>(task:
|
|
165
|
-
getTaskTime(task:
|
|
154
|
+
constructor(tasks: Array<ListrTaskObject<any, typeof MyDefaultRenderer>>, options: typeof MyDefaultRenderer['rendererOptions'], renderHook$?: ListrTaskObject<any, any>['renderHook$']);
|
|
155
|
+
getTaskOptions(task: ListrTaskObject<any, typeof MyDefaultRenderer>): typeof MyDefaultRenderer['rendererTaskOptions'];
|
|
156
|
+
isBottomBar(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
157
|
+
hasPersistentOutput(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
158
|
+
hasTimer(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
159
|
+
getSelfOrParentOption<T extends keyof typeof MyDefaultRenderer['rendererOptions']>(task: ListrTaskObject<any, typeof MyDefaultRenderer>, key: T): typeof MyDefaultRenderer['rendererOptions'][T];
|
|
160
|
+
getTaskTime(task: ListrTaskObject<any, typeof MyDefaultRenderer>): string;
|
|
166
161
|
createRender(options?: {
|
|
167
162
|
tasks?: boolean;
|
|
168
163
|
bottomBar?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.MyDefaultRenderer = void 0;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
@@ -11,25 +12,51 @@ const tslib_1 = require("tslib");
|
|
|
11
12
|
const os_1 = require("os");
|
|
12
13
|
const cli_truncate_1 = (0, tslib_1.__importDefault)(require("cli-truncate"));
|
|
13
14
|
const log_update_1 = (0, tslib_1.__importDefault)(require("log-update"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const wrap_ansi_1 = (0, tslib_1.__importDefault)(require("wrap-ansi"));
|
|
16
|
+
const listr2_1 = require("listr2");
|
|
17
|
+
const colorette_1 = require("colorette");
|
|
18
|
+
const colorette = (0, colorette_1.createColors)({ useColor: ((_a = process.env) === null || _a === void 0 ? void 0 : _a.LISTR_DISABLE_COLOR) !== '1' });
|
|
19
|
+
function indentString(string, count) {
|
|
20
|
+
return string.replace(/^(?!\s*$)/gm, ' '.repeat(count));
|
|
21
|
+
}
|
|
22
|
+
function isUnicodeSupported() {
|
|
23
|
+
if (process.platform !== 'win32') {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
/* istanbul ignore next */
|
|
27
|
+
return (Boolean(process.env.CI) ||
|
|
28
|
+
Boolean(process.env.WT_SESSION) ||
|
|
29
|
+
process.env.TERM_PROGRAM === 'vscode' ||
|
|
30
|
+
process.env.TERM === 'xterm-256color' ||
|
|
31
|
+
process.env.TERM === 'alacritty');
|
|
32
|
+
}
|
|
33
|
+
function parseTaskTime(duration) {
|
|
34
|
+
const seconds = Math.floor(duration / 1000);
|
|
35
|
+
const minutes = Math.floor(seconds / 60);
|
|
36
|
+
let parsedTime;
|
|
37
|
+
if (seconds === 0 && minutes === 0) {
|
|
38
|
+
parsedTime = `0.${Math.floor(duration / 100)}s`;
|
|
39
|
+
}
|
|
40
|
+
if (seconds > 0) {
|
|
41
|
+
parsedTime = `${seconds % 60}s`;
|
|
42
|
+
}
|
|
43
|
+
if (minutes > 0) {
|
|
44
|
+
parsedTime = `${minutes}m${parsedTime}`;
|
|
45
|
+
}
|
|
46
|
+
return parsedTime;
|
|
47
|
+
}
|
|
20
48
|
function startTimeSpan() {
|
|
21
49
|
const start = process.hrtime.bigint();
|
|
22
50
|
return { getTimeSpan: () => Number(process.hrtime.bigint() - start) / 1000000000 };
|
|
23
51
|
}
|
|
24
52
|
/** Default updating renderer for Listr2 */
|
|
25
53
|
class MyDefaultRenderer {
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
27
54
|
constructor(tasks, options, renderHook$) {
|
|
28
55
|
this.tasks = tasks;
|
|
29
56
|
this.options = options;
|
|
30
57
|
this.renderHook$ = renderHook$;
|
|
31
58
|
this.bottomBar = {};
|
|
32
|
-
this.spinner = !
|
|
59
|
+
this.spinner = !isUnicodeSupported()
|
|
33
60
|
? ['-', '\\', '|', '/']
|
|
34
61
|
: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
35
62
|
this.spinnerPosition = 0;
|
|
@@ -57,7 +84,7 @@ class MyDefaultRenderer {
|
|
|
57
84
|
}
|
|
58
85
|
/* istanbul ignore next */
|
|
59
86
|
getTaskTime(task) {
|
|
60
|
-
return
|
|
87
|
+
return colorette.dim(`[${parseTaskTime(task.message.duration)}]`);
|
|
61
88
|
}
|
|
62
89
|
createRender(options) {
|
|
63
90
|
options = {
|
|
@@ -136,18 +163,18 @@ class MyDefaultRenderer {
|
|
|
136
163
|
if (completed.length > 0) {
|
|
137
164
|
output = [
|
|
138
165
|
...output,
|
|
139
|
-
this.formatString(`... completed (${completed.length})`,
|
|
166
|
+
this.formatString(`... completed (${completed.length})`, colorette.green(listr2_1.figures.tick), level),
|
|
140
167
|
];
|
|
141
168
|
}
|
|
142
169
|
const failed = this.hiddenTasks[id].filter((t) => t.hasFailed());
|
|
143
170
|
if (failed.length > 0) {
|
|
144
|
-
output = [...output, this.formatString(`... failed (${failed.length})`,
|
|
171
|
+
output = [...output, this.formatString(`... failed (${failed.length})`, colorette.red(listr2_1.figures.cross), level)];
|
|
145
172
|
}
|
|
146
173
|
const skipped = this.hiddenTasks[id].filter((t) => t.isSkipped());
|
|
147
174
|
if (skipped.length > 0) {
|
|
148
175
|
output = [
|
|
149
176
|
...output,
|
|
150
|
-
this.formatString(`... skipped (${skipped.length})`,
|
|
177
|
+
this.formatString(`... skipped (${skipped.length})`, colorette.yellow(listr2_1.figures.arrowDown), level),
|
|
151
178
|
];
|
|
152
179
|
}
|
|
153
180
|
}
|
|
@@ -206,7 +233,7 @@ class MyDefaultRenderer {
|
|
|
206
233
|
}
|
|
207
234
|
else {
|
|
208
235
|
// some sibling task but self has failed and this has stopped
|
|
209
|
-
output = [...output, this.formatString(task.title,
|
|
236
|
+
output = [...output, this.formatString(task.title, colorette.red(listr2_1.figures.squareSmallFilled), level)];
|
|
210
237
|
}
|
|
211
238
|
}
|
|
212
239
|
// task should not have subtasks since subtasks will handle the error already
|
|
@@ -306,7 +333,7 @@ class MyDefaultRenderer {
|
|
|
306
333
|
if (level > 0 && this.currentTasks[id].length - this.options.maxSubTasks > 0) {
|
|
307
334
|
output = [
|
|
308
335
|
...output,
|
|
309
|
-
this.formatString(`... pending (${this.currentTasks[id].length - this.options.maxSubTasks})`,
|
|
336
|
+
this.formatString(`... pending (${this.currentTasks[id].length - this.options.maxSubTasks})`, colorette.dim(listr2_1.figures.squareSmallFilled), level),
|
|
310
337
|
];
|
|
311
338
|
}
|
|
312
339
|
output = output.filter(Boolean);
|
|
@@ -377,7 +404,7 @@ class MyDefaultRenderer {
|
|
|
377
404
|
});
|
|
378
405
|
break;
|
|
379
406
|
case 'wrap':
|
|
380
|
-
parsedStr =
|
|
407
|
+
parsedStr = (0, wrap_ansi_1.default)(str, columns, { hard: true })
|
|
381
408
|
.split(os_1.EOL)
|
|
382
409
|
.map((s, i) => this.indentMultilineOutput(s, i));
|
|
383
410
|
break;
|
|
@@ -388,10 +415,10 @@ class MyDefaultRenderer {
|
|
|
388
415
|
if (this.options.removeEmptyLines) {
|
|
389
416
|
parsedStr = parsedStr.filter(Boolean);
|
|
390
417
|
}
|
|
391
|
-
return
|
|
418
|
+
return indentString(parsedStr.join(os_1.EOL), level * this.options.indentation);
|
|
392
419
|
}
|
|
393
420
|
indentMultilineOutput(str, i) {
|
|
394
|
-
return i > 0 ?
|
|
421
|
+
return i > 0 ? indentString(str.trim(), 2) : str.trim();
|
|
395
422
|
}
|
|
396
423
|
// eslint-disable-next-line complexity
|
|
397
424
|
getSymbol(task, data = false) {
|
|
@@ -401,38 +428,38 @@ class MyDefaultRenderer {
|
|
|
401
428
|
(this.getSelfOrParentOption(task, 'showSubtasks') !== false &&
|
|
402
429
|
task.hasSubtasks() &&
|
|
403
430
|
!task.subtasks.every((subtask) => !subtask.hasTitle()))
|
|
404
|
-
?
|
|
405
|
-
:
|
|
431
|
+
? colorette.yellow(listr2_1.figures.pointer)
|
|
432
|
+
: colorette.yellowBright(this.spinner[this.spinnerPosition]);
|
|
406
433
|
}
|
|
407
434
|
else if (task.isCompleted() && !data) {
|
|
408
435
|
return task.hasSubtasks() && task.subtasks.some((subtask) => subtask.hasFailed())
|
|
409
|
-
?
|
|
410
|
-
:
|
|
436
|
+
? colorette.yellow(listr2_1.figures.warning)
|
|
437
|
+
: colorette.green(listr2_1.figures.tick);
|
|
411
438
|
}
|
|
412
439
|
else if (task.isRetrying() && !data) {
|
|
413
440
|
return ((_b = this.options) === null || _b === void 0 ? void 0 : _b.lazy)
|
|
414
|
-
?
|
|
415
|
-
:
|
|
441
|
+
? colorette.yellow(listr2_1.figures.warning)
|
|
442
|
+
: colorette.yellow(this.spinner[this.spinnerPosition]);
|
|
416
443
|
}
|
|
417
444
|
else if (task.isRollingBack() && !data) {
|
|
418
|
-
return ((_c = this.options) === null || _c === void 0 ? void 0 : _c.lazy) ?
|
|
445
|
+
return ((_c = this.options) === null || _c === void 0 ? void 0 : _c.lazy) ? colorette.red(listr2_1.figures.warning) : colorette.red(this.spinner[this.spinnerPosition]);
|
|
419
446
|
}
|
|
420
447
|
else if (task.hasRolledBack() && !data) {
|
|
421
|
-
return
|
|
448
|
+
return colorette.red(listr2_1.figures.arrowLeft);
|
|
422
449
|
}
|
|
423
450
|
else if (task.hasFailed() && !data) {
|
|
424
|
-
return task.hasSubtasks() ?
|
|
451
|
+
return task.hasSubtasks() ? colorette.red(listr2_1.figures.pointer) : colorette.red(listr2_1.figures.cross);
|
|
425
452
|
}
|
|
426
453
|
else if (task.isSkipped() && !data && this.getSelfOrParentOption(task, 'collapseSkips') === false) {
|
|
427
|
-
return
|
|
454
|
+
return colorette.yellow(listr2_1.figures.warning);
|
|
428
455
|
}
|
|
429
456
|
else if (task.isSkipped() && (data || this.getSelfOrParentOption(task, 'collapseSkips'))) {
|
|
430
|
-
return
|
|
457
|
+
return colorette.yellow(listr2_1.figures.arrowDown);
|
|
431
458
|
}
|
|
432
|
-
return !data ?
|
|
459
|
+
return !data ? colorette.dim(listr2_1.figures.squareSmallFilled) : listr2_1.figures.pointerSmall;
|
|
433
460
|
}
|
|
434
461
|
addSuffixToMessage(message, suffix, condition) {
|
|
435
|
-
return (condition !== null && condition !== void 0 ? condition : true) ? message +
|
|
462
|
+
return (condition !== null && condition !== void 0 ? condition : true) ? message + colorette.dim(` [${suffix}]`) : message;
|
|
436
463
|
}
|
|
437
464
|
}
|
|
438
465
|
exports.MyDefaultRenderer = MyDefaultRenderer;
|