rflib-plugin 0.20.0 → 0.21.0
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 +12 -3
- package/lib/commands/rflib/logging/flow/instrument.d.ts +19 -1
- package/lib/commands/rflib/logging/flow/instrument.js +246 -101
- package/lib/commands/rflib/logging/flow/instrument.js.map +1 -1
- package/messages/rflib.logging.flow.instrument.md +29 -4
- package/oclif.manifest.json +218 -199
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"rflib:packages:upgrade": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Compares the RFLIB packages (RFLIB, RFLIB-FS, RFLIB-TF, RFLIB-PHAROS) installed in the target org with the latest package versions published in the RFLIB GitHub repository (https://github.com/j-fischer/rflib).\n\nFor every installed package with a newer version available, the command asks whether to install the upgrade and, if confirmed, starts the installation in the target org. Upgrades are installed one at a time in dependency order (RFLIB first), and the remaining upgrades are skipped if an installation does not complete successfully.\n\nPackages that are not installed in the target org are only reported; this command never installs a package that isn't already present.\n\nUse --dryrun to only report the available upgrades, or --no-prompt to install all available upgrades without asking for confirmation. When --json is specified without --no-prompt, no upgrades are installed.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"Check the RFLIB packages installed in an org and choose which upgrades to install:\n$ sf rflib packages upgrade --target-org myOrg",
|
|
9
|
+
"Report the available upgrades without installing anything:\n$ sf rflib packages upgrade --target-org myOrg --dryrun",
|
|
10
|
+
"Install all available upgrades without prompting, waiting up to 60 minutes for each installation:\n$ sf rflib packages upgrade --target-org myOrg --no-prompt --wait 60"
|
|
11
|
+
],
|
|
12
|
+
"flags": {
|
|
13
|
+
"json": {
|
|
14
|
+
"description": "Format output as json.",
|
|
15
|
+
"helpGroup": "GLOBAL",
|
|
16
|
+
"name": "json",
|
|
17
|
+
"allowNo": false,
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"flags-dir": {
|
|
21
|
+
"helpGroup": "GLOBAL",
|
|
22
|
+
"name": "flags-dir",
|
|
23
|
+
"summary": "Import flag values from a directory.",
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"multiple": false,
|
|
26
|
+
"type": "option"
|
|
27
|
+
},
|
|
28
|
+
"target-org": {
|
|
29
|
+
"char": "o",
|
|
30
|
+
"description": "The username or alias of the Salesforce org whose installed RFLIB packages should be checked and upgraded.",
|
|
31
|
+
"name": "target-org",
|
|
32
|
+
"noCacheDefault": true,
|
|
33
|
+
"required": true,
|
|
34
|
+
"summary": "Username or alias of the target org.",
|
|
35
|
+
"hasDynamicHelp": true,
|
|
36
|
+
"multiple": false,
|
|
37
|
+
"type": "option"
|
|
38
|
+
},
|
|
39
|
+
"dryrun": {
|
|
40
|
+
"char": "d",
|
|
41
|
+
"description": "Compare the installed packages with the latest versions and print the results, without prompting or installing any upgrades.",
|
|
42
|
+
"exclusive": [
|
|
43
|
+
"no-prompt"
|
|
44
|
+
],
|
|
45
|
+
"name": "dryrun",
|
|
46
|
+
"summary": "Report the available upgrades without installing them.",
|
|
47
|
+
"allowNo": false,
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"no-prompt": {
|
|
51
|
+
"char": "r",
|
|
52
|
+
"description": "Skip the confirmation prompt for each upgrade and install every available upgrade. Use this flag in scripts and CI jobs, or together with --json.",
|
|
53
|
+
"name": "no-prompt",
|
|
54
|
+
"summary": "Install all available upgrades without asking for confirmation.",
|
|
55
|
+
"allowNo": false,
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"wait": {
|
|
59
|
+
"char": "w",
|
|
60
|
+
"description": "The number of minutes to wait for each package installation to complete before moving on. If the wait time elapses, the installation continues in the org and the remaining upgrades are skipped. Use \"sf package install report\" with the reported request ID to check its progress. Specify 0 to submit the first installation request without waiting.",
|
|
61
|
+
"name": "wait",
|
|
62
|
+
"summary": "Number of minutes to wait for each package installation to complete.",
|
|
63
|
+
"default": 30,
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"hasDynamicHelp": true,
|
|
70
|
+
"hiddenAliases": [],
|
|
71
|
+
"id": "rflib:packages:upgrade",
|
|
72
|
+
"pluginAlias": "rflib-plugin",
|
|
73
|
+
"pluginName": "rflib-plugin",
|
|
74
|
+
"pluginType": "core",
|
|
75
|
+
"strict": true,
|
|
76
|
+
"summary": "Check the RFLIB packages installed in a Salesforce org and upgrade them to the latest released versions.",
|
|
77
|
+
"enableJsonFlag": true,
|
|
78
|
+
"isESM": true,
|
|
79
|
+
"relativePath": [
|
|
80
|
+
"lib",
|
|
81
|
+
"commands",
|
|
82
|
+
"rflib",
|
|
83
|
+
"packages",
|
|
84
|
+
"upgrade.js"
|
|
85
|
+
],
|
|
86
|
+
"aliasPermutations": [],
|
|
87
|
+
"permutations": [
|
|
88
|
+
"rflib:packages:upgrade",
|
|
89
|
+
"packages:rflib:upgrade",
|
|
90
|
+
"packages:upgrade:rflib",
|
|
91
|
+
"rflib:upgrade:packages",
|
|
92
|
+
"upgrade:rflib:packages",
|
|
93
|
+
"upgrade:packages:rflib"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
3
96
|
"rflib:debug:applicationevents:get": {
|
|
4
97
|
"aliases": [],
|
|
5
98
|
"args": {},
|
|
@@ -128,106 +221,6 @@
|
|
|
128
221
|
"get:applicationevents:debug:rflib"
|
|
129
222
|
]
|
|
130
223
|
},
|
|
131
|
-
"rflib:debug:logarchives:get": {
|
|
132
|
-
"aliases": [],
|
|
133
|
-
"args": {},
|
|
134
|
-
"description": "Retrieves rflib_Logs_Archive__b records from the target org's big object store via the Salesforce REST API.\nEach log record contains log level, context, request ID, and full log messages in the format: [timestamp]|[LEVEL]|[TRACE_ID]|[CONTEXT]|[MESSAGE].\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Logs_Archive__b).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
|
|
135
|
-
"examples": [
|
|
136
|
-
"Get log archives from the last 24 hours:\n$ sf rflib debug logarchives get --target-org myOrg",
|
|
137
|
-
"Get log archives for a specific date range:\n$ sf rflib debug logarchives get --target-org myOrg --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z"
|
|
138
|
-
],
|
|
139
|
-
"flags": {
|
|
140
|
-
"json": {
|
|
141
|
-
"description": "Format output as json.",
|
|
142
|
-
"helpGroup": "GLOBAL",
|
|
143
|
-
"name": "json",
|
|
144
|
-
"allowNo": false,
|
|
145
|
-
"type": "boolean"
|
|
146
|
-
},
|
|
147
|
-
"flags-dir": {
|
|
148
|
-
"helpGroup": "GLOBAL",
|
|
149
|
-
"name": "flags-dir",
|
|
150
|
-
"summary": "Import flag values from a directory.",
|
|
151
|
-
"hasDynamicHelp": false,
|
|
152
|
-
"multiple": false,
|
|
153
|
-
"type": "option"
|
|
154
|
-
},
|
|
155
|
-
"target-org": {
|
|
156
|
-
"char": "o",
|
|
157
|
-
"description": "The username or alias of the Salesforce org containing the RFLIB base package.",
|
|
158
|
-
"name": "target-org",
|
|
159
|
-
"noCacheDefault": true,
|
|
160
|
-
"required": true,
|
|
161
|
-
"summary": "Username or alias of the target org.",
|
|
162
|
-
"hasDynamicHelp": true,
|
|
163
|
-
"multiple": false,
|
|
164
|
-
"type": "option"
|
|
165
|
-
},
|
|
166
|
-
"start-date": {
|
|
167
|
-
"char": "s",
|
|
168
|
-
"description": "Only return log archives created on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z. Defaults to 24 hours ago if omitted.",
|
|
169
|
-
"name": "start-date",
|
|
170
|
-
"summary": "Start of the date range in ISO 8601 format. Defaults to 24 hours ago.",
|
|
171
|
-
"hasDynamicHelp": false,
|
|
172
|
-
"multiple": false,
|
|
173
|
-
"type": "option"
|
|
174
|
-
},
|
|
175
|
-
"end-date": {
|
|
176
|
-
"char": "d",
|
|
177
|
-
"description": "Only return log archives created on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z. Defaults to the current time if omitted.",
|
|
178
|
-
"name": "end-date",
|
|
179
|
-
"summary": "End of the date range in ISO 8601 format. Defaults to now.",
|
|
180
|
-
"hasDynamicHelp": false,
|
|
181
|
-
"multiple": false,
|
|
182
|
-
"type": "option"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"hasDynamicHelp": true,
|
|
186
|
-
"hiddenAliases": [],
|
|
187
|
-
"id": "rflib:debug:logarchives:get",
|
|
188
|
-
"pluginAlias": "rflib-plugin",
|
|
189
|
-
"pluginName": "rflib-plugin",
|
|
190
|
-
"pluginType": "core",
|
|
191
|
-
"strict": true,
|
|
192
|
-
"summary": "Query RFLIB log archives from a Salesforce org.",
|
|
193
|
-
"enableJsonFlag": true,
|
|
194
|
-
"isESM": true,
|
|
195
|
-
"relativePath": [
|
|
196
|
-
"lib",
|
|
197
|
-
"commands",
|
|
198
|
-
"rflib",
|
|
199
|
-
"debug",
|
|
200
|
-
"logarchives",
|
|
201
|
-
"get.js"
|
|
202
|
-
],
|
|
203
|
-
"aliasPermutations": [],
|
|
204
|
-
"permutations": [
|
|
205
|
-
"rflib:debug:logarchives:get",
|
|
206
|
-
"debug:rflib:logarchives:get",
|
|
207
|
-
"debug:logarchives:rflib:get",
|
|
208
|
-
"debug:logarchives:get:rflib",
|
|
209
|
-
"rflib:logarchives:debug:get",
|
|
210
|
-
"logarchives:rflib:debug:get",
|
|
211
|
-
"logarchives:debug:rflib:get",
|
|
212
|
-
"logarchives:debug:get:rflib",
|
|
213
|
-
"rflib:logarchives:get:debug",
|
|
214
|
-
"logarchives:rflib:get:debug",
|
|
215
|
-
"logarchives:get:rflib:debug",
|
|
216
|
-
"logarchives:get:debug:rflib",
|
|
217
|
-
"rflib:debug:get:logarchives",
|
|
218
|
-
"debug:rflib:get:logarchives",
|
|
219
|
-
"debug:get:rflib:logarchives",
|
|
220
|
-
"debug:get:logarchives:rflib",
|
|
221
|
-
"rflib:get:debug:logarchives",
|
|
222
|
-
"get:rflib:debug:logarchives",
|
|
223
|
-
"get:debug:rflib:logarchives",
|
|
224
|
-
"get:debug:logarchives:rflib",
|
|
225
|
-
"rflib:get:logarchives:debug",
|
|
226
|
-
"get:rflib:logarchives:debug",
|
|
227
|
-
"get:logarchives:rflib:debug",
|
|
228
|
-
"get:logarchives:debug:rflib"
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
224
|
"rflib:debug:loggersettings:get": {
|
|
232
225
|
"aliases": [],
|
|
233
226
|
"args": {},
|
|
@@ -429,99 +422,6 @@
|
|
|
429
422
|
"update:loggersettings:debug:rflib"
|
|
430
423
|
]
|
|
431
424
|
},
|
|
432
|
-
"rflib:packages:upgrade": {
|
|
433
|
-
"aliases": [],
|
|
434
|
-
"args": {},
|
|
435
|
-
"description": "Compares the RFLIB packages (RFLIB, RFLIB-FS, RFLIB-TF, RFLIB-PHAROS) installed in the target org with the latest package versions published in the RFLIB GitHub repository (https://github.com/j-fischer/rflib).\n\nFor every installed package with a newer version available, the command asks whether to install the upgrade and, if confirmed, starts the installation in the target org. Upgrades are installed one at a time in dependency order (RFLIB first), and the remaining upgrades are skipped if an installation does not complete successfully.\n\nPackages that are not installed in the target org are only reported; this command never installs a package that isn't already present.\n\nUse --dryrun to only report the available upgrades, or --no-prompt to install all available upgrades without asking for confirmation. When --json is specified without --no-prompt, no upgrades are installed.",
|
|
436
|
-
"examples": [
|
|
437
|
-
"Check the RFLIB packages installed in an org and choose which upgrades to install:\n$ sf rflib packages upgrade --target-org myOrg",
|
|
438
|
-
"Report the available upgrades without installing anything:\n$ sf rflib packages upgrade --target-org myOrg --dryrun",
|
|
439
|
-
"Install all available upgrades without prompting, waiting up to 60 minutes for each installation:\n$ sf rflib packages upgrade --target-org myOrg --no-prompt --wait 60"
|
|
440
|
-
],
|
|
441
|
-
"flags": {
|
|
442
|
-
"json": {
|
|
443
|
-
"description": "Format output as json.",
|
|
444
|
-
"helpGroup": "GLOBAL",
|
|
445
|
-
"name": "json",
|
|
446
|
-
"allowNo": false,
|
|
447
|
-
"type": "boolean"
|
|
448
|
-
},
|
|
449
|
-
"flags-dir": {
|
|
450
|
-
"helpGroup": "GLOBAL",
|
|
451
|
-
"name": "flags-dir",
|
|
452
|
-
"summary": "Import flag values from a directory.",
|
|
453
|
-
"hasDynamicHelp": false,
|
|
454
|
-
"multiple": false,
|
|
455
|
-
"type": "option"
|
|
456
|
-
},
|
|
457
|
-
"target-org": {
|
|
458
|
-
"char": "o",
|
|
459
|
-
"description": "The username or alias of the Salesforce org whose installed RFLIB packages should be checked and upgraded.",
|
|
460
|
-
"name": "target-org",
|
|
461
|
-
"noCacheDefault": true,
|
|
462
|
-
"required": true,
|
|
463
|
-
"summary": "Username or alias of the target org.",
|
|
464
|
-
"hasDynamicHelp": true,
|
|
465
|
-
"multiple": false,
|
|
466
|
-
"type": "option"
|
|
467
|
-
},
|
|
468
|
-
"dryrun": {
|
|
469
|
-
"char": "d",
|
|
470
|
-
"description": "Compare the installed packages with the latest versions and print the results, without prompting or installing any upgrades.",
|
|
471
|
-
"exclusive": [
|
|
472
|
-
"no-prompt"
|
|
473
|
-
],
|
|
474
|
-
"name": "dryrun",
|
|
475
|
-
"summary": "Report the available upgrades without installing them.",
|
|
476
|
-
"allowNo": false,
|
|
477
|
-
"type": "boolean"
|
|
478
|
-
},
|
|
479
|
-
"no-prompt": {
|
|
480
|
-
"char": "r",
|
|
481
|
-
"description": "Skip the confirmation prompt for each upgrade and install every available upgrade. Use this flag in scripts and CI jobs, or together with --json.",
|
|
482
|
-
"name": "no-prompt",
|
|
483
|
-
"summary": "Install all available upgrades without asking for confirmation.",
|
|
484
|
-
"allowNo": false,
|
|
485
|
-
"type": "boolean"
|
|
486
|
-
},
|
|
487
|
-
"wait": {
|
|
488
|
-
"char": "w",
|
|
489
|
-
"description": "The number of minutes to wait for each package installation to complete before moving on. If the wait time elapses, the installation continues in the org and the remaining upgrades are skipped. Use \"sf package install report\" with the reported request ID to check its progress. Specify 0 to submit the first installation request without waiting.",
|
|
490
|
-
"name": "wait",
|
|
491
|
-
"summary": "Number of minutes to wait for each package installation to complete.",
|
|
492
|
-
"default": 30,
|
|
493
|
-
"hasDynamicHelp": false,
|
|
494
|
-
"multiple": false,
|
|
495
|
-
"type": "option"
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
"hasDynamicHelp": true,
|
|
499
|
-
"hiddenAliases": [],
|
|
500
|
-
"id": "rflib:packages:upgrade",
|
|
501
|
-
"pluginAlias": "rflib-plugin",
|
|
502
|
-
"pluginName": "rflib-plugin",
|
|
503
|
-
"pluginType": "core",
|
|
504
|
-
"strict": true,
|
|
505
|
-
"summary": "Check the RFLIB packages installed in a Salesforce org and upgrade them to the latest released versions.",
|
|
506
|
-
"enableJsonFlag": true,
|
|
507
|
-
"isESM": true,
|
|
508
|
-
"relativePath": [
|
|
509
|
-
"lib",
|
|
510
|
-
"commands",
|
|
511
|
-
"rflib",
|
|
512
|
-
"packages",
|
|
513
|
-
"upgrade.js"
|
|
514
|
-
],
|
|
515
|
-
"aliasPermutations": [],
|
|
516
|
-
"permutations": [
|
|
517
|
-
"rflib:packages:upgrade",
|
|
518
|
-
"packages:rflib:upgrade",
|
|
519
|
-
"packages:upgrade:rflib",
|
|
520
|
-
"rflib:upgrade:packages",
|
|
521
|
-
"upgrade:rflib:packages",
|
|
522
|
-
"upgrade:packages:rflib"
|
|
523
|
-
]
|
|
524
|
-
},
|
|
525
425
|
"rflib:debug:userpermissions:get": {
|
|
526
426
|
"aliases": [],
|
|
527
427
|
"args": {},
|
|
@@ -640,6 +540,106 @@
|
|
|
640
540
|
"get:userpermissions:debug:rflib"
|
|
641
541
|
]
|
|
642
542
|
},
|
|
543
|
+
"rflib:debug:logarchives:get": {
|
|
544
|
+
"aliases": [],
|
|
545
|
+
"args": {},
|
|
546
|
+
"description": "Retrieves rflib_Logs_Archive__b records from the target org's big object store via the Salesforce REST API.\nEach log record contains log level, context, request ID, and full log messages in the format: [timestamp]|[LEVEL]|[TRACE_ID]|[CONTEXT]|[MESSAGE].\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Logs_Archive__b).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
|
|
547
|
+
"examples": [
|
|
548
|
+
"Get log archives from the last 24 hours:\n$ sf rflib debug logarchives get --target-org myOrg",
|
|
549
|
+
"Get log archives for a specific date range:\n$ sf rflib debug logarchives get --target-org myOrg --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z"
|
|
550
|
+
],
|
|
551
|
+
"flags": {
|
|
552
|
+
"json": {
|
|
553
|
+
"description": "Format output as json.",
|
|
554
|
+
"helpGroup": "GLOBAL",
|
|
555
|
+
"name": "json",
|
|
556
|
+
"allowNo": false,
|
|
557
|
+
"type": "boolean"
|
|
558
|
+
},
|
|
559
|
+
"flags-dir": {
|
|
560
|
+
"helpGroup": "GLOBAL",
|
|
561
|
+
"name": "flags-dir",
|
|
562
|
+
"summary": "Import flag values from a directory.",
|
|
563
|
+
"hasDynamicHelp": false,
|
|
564
|
+
"multiple": false,
|
|
565
|
+
"type": "option"
|
|
566
|
+
},
|
|
567
|
+
"target-org": {
|
|
568
|
+
"char": "o",
|
|
569
|
+
"description": "The username or alias of the Salesforce org containing the RFLIB base package.",
|
|
570
|
+
"name": "target-org",
|
|
571
|
+
"noCacheDefault": true,
|
|
572
|
+
"required": true,
|
|
573
|
+
"summary": "Username or alias of the target org.",
|
|
574
|
+
"hasDynamicHelp": true,
|
|
575
|
+
"multiple": false,
|
|
576
|
+
"type": "option"
|
|
577
|
+
},
|
|
578
|
+
"start-date": {
|
|
579
|
+
"char": "s",
|
|
580
|
+
"description": "Only return log archives created on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z. Defaults to 24 hours ago if omitted.",
|
|
581
|
+
"name": "start-date",
|
|
582
|
+
"summary": "Start of the date range in ISO 8601 format. Defaults to 24 hours ago.",
|
|
583
|
+
"hasDynamicHelp": false,
|
|
584
|
+
"multiple": false,
|
|
585
|
+
"type": "option"
|
|
586
|
+
},
|
|
587
|
+
"end-date": {
|
|
588
|
+
"char": "d",
|
|
589
|
+
"description": "Only return log archives created on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z. Defaults to the current time if omitted.",
|
|
590
|
+
"name": "end-date",
|
|
591
|
+
"summary": "End of the date range in ISO 8601 format. Defaults to now.",
|
|
592
|
+
"hasDynamicHelp": false,
|
|
593
|
+
"multiple": false,
|
|
594
|
+
"type": "option"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"hasDynamicHelp": true,
|
|
598
|
+
"hiddenAliases": [],
|
|
599
|
+
"id": "rflib:debug:logarchives:get",
|
|
600
|
+
"pluginAlias": "rflib-plugin",
|
|
601
|
+
"pluginName": "rflib-plugin",
|
|
602
|
+
"pluginType": "core",
|
|
603
|
+
"strict": true,
|
|
604
|
+
"summary": "Query RFLIB log archives from a Salesforce org.",
|
|
605
|
+
"enableJsonFlag": true,
|
|
606
|
+
"isESM": true,
|
|
607
|
+
"relativePath": [
|
|
608
|
+
"lib",
|
|
609
|
+
"commands",
|
|
610
|
+
"rflib",
|
|
611
|
+
"debug",
|
|
612
|
+
"logarchives",
|
|
613
|
+
"get.js"
|
|
614
|
+
],
|
|
615
|
+
"aliasPermutations": [],
|
|
616
|
+
"permutations": [
|
|
617
|
+
"rflib:debug:logarchives:get",
|
|
618
|
+
"debug:rflib:logarchives:get",
|
|
619
|
+
"debug:logarchives:rflib:get",
|
|
620
|
+
"debug:logarchives:get:rflib",
|
|
621
|
+
"rflib:logarchives:debug:get",
|
|
622
|
+
"logarchives:rflib:debug:get",
|
|
623
|
+
"logarchives:debug:rflib:get",
|
|
624
|
+
"logarchives:debug:get:rflib",
|
|
625
|
+
"rflib:logarchives:get:debug",
|
|
626
|
+
"logarchives:rflib:get:debug",
|
|
627
|
+
"logarchives:get:rflib:debug",
|
|
628
|
+
"logarchives:get:debug:rflib",
|
|
629
|
+
"rflib:debug:get:logarchives",
|
|
630
|
+
"debug:rflib:get:logarchives",
|
|
631
|
+
"debug:get:rflib:logarchives",
|
|
632
|
+
"debug:get:logarchives:rflib",
|
|
633
|
+
"rflib:get:debug:logarchives",
|
|
634
|
+
"get:rflib:debug:logarchives",
|
|
635
|
+
"get:debug:rflib:logarchives",
|
|
636
|
+
"get:debug:logarchives:rflib",
|
|
637
|
+
"rflib:get:logarchives:debug",
|
|
638
|
+
"get:rflib:logarchives:debug",
|
|
639
|
+
"get:logarchives:rflib:debug",
|
|
640
|
+
"get:logarchives:debug:rflib"
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
643
|
"rflib:logging:apex:instrument": {
|
|
644
644
|
"aliases": [],
|
|
645
645
|
"args": {},
|
|
@@ -924,11 +924,12 @@
|
|
|
924
924
|
"rflib:logging:flow:instrument": {
|
|
925
925
|
"aliases": [],
|
|
926
926
|
"args": {},
|
|
927
|
-
"description": "Automatically adds RFLIB logging statements to Salesforce Flows to provide enhanced tracking and debugging capabilities. Works with both standard Flows and Auto-Launched Flows. Instruments flow invocations and decision paths with logging actions. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
|
|
927
|
+
"description": "Automatically adds RFLIB logging statements to Salesforce Flows to provide enhanced tracking and debugging capabilities. Works with both standard Flows and Auto-Launched Flows. Instruments flow invocations and decision paths with logging actions, and logs an error on the fault path of every element that can fail. Existing fault paths continue after the error is logged. Elements without a fault path get one that logs the error and then terminates the transaction, so the Flow still fails as before; this requires the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0. The command checks the RFLIB version installed in the target org and skips the fault paths if the org runs an older version or RFLIB is not installed as a package. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
|
|
928
928
|
"examples": [
|
|
929
|
-
"<%= config.bin %> <%= command.id %> --sourcepath force-app",
|
|
930
|
-
"<%= config.bin %> <%= command.id %> --sourcepath force-app --dryrun",
|
|
931
|
-
"<%= config.bin %> <%= command.id %> --sourcepath force-app --skip-instrumented"
|
|
929
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app",
|
|
930
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --dryrun",
|
|
931
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-instrumented",
|
|
932
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-fault-paths"
|
|
932
933
|
],
|
|
933
934
|
"flags": {
|
|
934
935
|
"json": {
|
|
@@ -946,6 +947,17 @@
|
|
|
946
947
|
"multiple": false,
|
|
947
948
|
"type": "option"
|
|
948
949
|
},
|
|
950
|
+
"target-org": {
|
|
951
|
+
"char": "o",
|
|
952
|
+
"description": "The Salesforce org the instrumented Flows will be deployed to. The command checks the version of the RFLIB package installed in this org to decide whether fault paths can be instrumented.",
|
|
953
|
+
"name": "target-org",
|
|
954
|
+
"noCacheDefault": true,
|
|
955
|
+
"required": true,
|
|
956
|
+
"summary": "Username or alias of the target org.",
|
|
957
|
+
"hasDynamicHelp": true,
|
|
958
|
+
"multiple": false,
|
|
959
|
+
"type": "option"
|
|
960
|
+
},
|
|
949
961
|
"sourcepath": {
|
|
950
962
|
"char": "s",
|
|
951
963
|
"description": "Path to the source directory containing Flow files that should be instrumented with RFLIB logging statements. Processes .flow-meta.xml files with processType=\"Flow\" or \"AutoLaunchedFlow\".",
|
|
@@ -971,6 +983,13 @@
|
|
|
971
983
|
"allowNo": false,
|
|
972
984
|
"type": "boolean"
|
|
973
985
|
},
|
|
986
|
+
"skip-fault-paths": {
|
|
987
|
+
"description": "When provided, the command will not add error logging to fault paths and will not create fault paths for elements that have none, regardless of the RFLIB version installed in the target org.",
|
|
988
|
+
"name": "skip-fault-paths",
|
|
989
|
+
"summary": "Skips logging errors on fault paths.",
|
|
990
|
+
"allowNo": false,
|
|
991
|
+
"type": "boolean"
|
|
992
|
+
},
|
|
974
993
|
"verbose": {
|
|
975
994
|
"char": "v",
|
|
976
995
|
"description": "When provided with --dryrun, prints the paths of the files that would be modified.",
|
|
@@ -999,7 +1018,7 @@
|
|
|
999
1018
|
"type": "option"
|
|
1000
1019
|
}
|
|
1001
1020
|
},
|
|
1002
|
-
"hasDynamicHelp":
|
|
1021
|
+
"hasDynamicHelp": true,
|
|
1003
1022
|
"hiddenAliases": [],
|
|
1004
1023
|
"id": "rflib:logging:flow:instrument",
|
|
1005
1024
|
"pluginAlias": "rflib-plugin",
|
|
@@ -1183,5 +1202,5 @@
|
|
|
1183
1202
|
]
|
|
1184
1203
|
}
|
|
1185
1204
|
},
|
|
1186
|
-
"version": "0.
|
|
1205
|
+
"version": "0.21.0"
|
|
1187
1206
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rflib-plugin",
|
|
3
3
|
"description": "Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4.14.0",
|
|
7
7
|
"@salesforce/core": "^8.32.6",
|