sfdx-hardis 5.20.0 → 5.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/CHANGELOG.md +4 -0
- package/lib/commands/hardis/doc/flow2markdown.d.ts +3 -1
- package/lib/commands/hardis/doc/flow2markdown.js +47 -28
- package/lib/commands/hardis/doc/flow2markdown.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.d.ts +1 -0
- package/lib/commands/hardis/doc/project2markdown.js +22 -2
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/common/metadata-utils/index.d.ts +1 -0
- package/lib/common/metadata-utils/index.js +12 -0
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/utils/markdownUtils.d.ts +1 -0
- package/lib/common/utils/markdownUtils.js +25 -0
- package/lib/common/utils/markdownUtils.js.map +1 -0
- package/lib/common/utils/mermaidUtils.d.ts +1 -1
- package/lib/common/utils/mermaidUtils.js +15 -2
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/oclif.lock +519 -15
- package/oclif.manifest.json +90 -75
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -57,13 +57,12 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Clear cache generated by sfdx-hardis",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
66
|
-
"CI=true sf hardis:auth:login"
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
67
66
|
],
|
|
68
67
|
"flags": {
|
|
69
68
|
"json": {
|
|
@@ -81,28 +80,6 @@
|
|
|
81
80
|
"multiple": false,
|
|
82
81
|
"type": "option"
|
|
83
82
|
},
|
|
84
|
-
"instanceurl": {
|
|
85
|
-
"char": "r",
|
|
86
|
-
"description": "URL of org instance",
|
|
87
|
-
"name": "instanceurl",
|
|
88
|
-
"hasDynamicHelp": false,
|
|
89
|
-
"multiple": false,
|
|
90
|
-
"type": "option"
|
|
91
|
-
},
|
|
92
|
-
"devhub": {
|
|
93
|
-
"char": "h",
|
|
94
|
-
"description": "Also connect associated DevHub",
|
|
95
|
-
"name": "devhub",
|
|
96
|
-
"allowNo": false,
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
"scratchorg": {
|
|
100
|
-
"char": "s",
|
|
101
|
-
"description": "Scratch org",
|
|
102
|
-
"name": "scratchorg",
|
|
103
|
-
"allowNo": false,
|
|
104
|
-
"type": "boolean"
|
|
105
|
-
},
|
|
106
83
|
"debug": {
|
|
107
84
|
"char": "d",
|
|
108
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -126,38 +103,38 @@
|
|
|
126
103
|
},
|
|
127
104
|
"hasDynamicHelp": false,
|
|
128
105
|
"hiddenAliases": [],
|
|
129
|
-
"id": "hardis:
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
130
107
|
"pluginAlias": "sfdx-hardis",
|
|
131
108
|
"pluginName": "sfdx-hardis",
|
|
132
109
|
"pluginType": "core",
|
|
133
110
|
"strict": true,
|
|
134
111
|
"enableJsonFlag": true,
|
|
135
|
-
"title": "
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
136
113
|
"requiresProject": false,
|
|
137
114
|
"isESM": true,
|
|
138
115
|
"relativePath": [
|
|
139
116
|
"lib",
|
|
140
117
|
"commands",
|
|
141
118
|
"hardis",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
119
|
+
"cache",
|
|
120
|
+
"clear.js"
|
|
144
121
|
],
|
|
145
122
|
"aliasPermutations": [],
|
|
146
123
|
"permutations": [
|
|
147
|
-
"hardis:
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"hardis:
|
|
151
|
-
"
|
|
152
|
-
"
|
|
124
|
+
"hardis:cache:clear",
|
|
125
|
+
"cache:hardis:clear",
|
|
126
|
+
"cache:clear:hardis",
|
|
127
|
+
"hardis:clear:cache",
|
|
128
|
+
"clear:hardis:cache",
|
|
129
|
+
"clear:cache:hardis"
|
|
153
130
|
]
|
|
154
131
|
},
|
|
155
|
-
"hardis:
|
|
132
|
+
"hardis:config:get": {
|
|
156
133
|
"aliases": [],
|
|
157
134
|
"args": {},
|
|
158
|
-
"description": "
|
|
135
|
+
"description": "Returns sfdx-hardis project config for a given level",
|
|
159
136
|
"examples": [
|
|
160
|
-
"$ sf hardis:
|
|
137
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
161
138
|
],
|
|
162
139
|
"flags": {
|
|
163
140
|
"json": {
|
|
@@ -175,6 +152,20 @@
|
|
|
175
152
|
"multiple": false,
|
|
176
153
|
"type": "option"
|
|
177
154
|
},
|
|
155
|
+
"level": {
|
|
156
|
+
"char": "l",
|
|
157
|
+
"description": "project,branch or user",
|
|
158
|
+
"name": "level",
|
|
159
|
+
"default": "project",
|
|
160
|
+
"hasDynamicHelp": false,
|
|
161
|
+
"multiple": false,
|
|
162
|
+
"options": [
|
|
163
|
+
"project",
|
|
164
|
+
"branch",
|
|
165
|
+
"user"
|
|
166
|
+
],
|
|
167
|
+
"type": "option"
|
|
168
|
+
},
|
|
178
169
|
"debug": {
|
|
179
170
|
"char": "d",
|
|
180
171
|
"description": "Activate debug mode (more logs)",
|
|
@@ -198,38 +189,39 @@
|
|
|
198
189
|
},
|
|
199
190
|
"hasDynamicHelp": false,
|
|
200
191
|
"hiddenAliases": [],
|
|
201
|
-
"id": "hardis:
|
|
192
|
+
"id": "hardis:config:get",
|
|
202
193
|
"pluginAlias": "sfdx-hardis",
|
|
203
194
|
"pluginName": "sfdx-hardis",
|
|
204
195
|
"pluginType": "core",
|
|
205
196
|
"strict": true,
|
|
206
197
|
"enableJsonFlag": true,
|
|
207
|
-
"title": "
|
|
198
|
+
"title": "Deploy metadata sources to org",
|
|
208
199
|
"requiresProject": false,
|
|
209
200
|
"isESM": true,
|
|
210
201
|
"relativePath": [
|
|
211
202
|
"lib",
|
|
212
203
|
"commands",
|
|
213
204
|
"hardis",
|
|
214
|
-
"
|
|
215
|
-
"
|
|
205
|
+
"config",
|
|
206
|
+
"get.js"
|
|
216
207
|
],
|
|
217
208
|
"aliasPermutations": [],
|
|
218
209
|
"permutations": [
|
|
219
|
-
"hardis:
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
210
|
+
"hardis:config:get",
|
|
211
|
+
"config:hardis:get",
|
|
212
|
+
"config:get:hardis",
|
|
213
|
+
"hardis:get:config",
|
|
214
|
+
"get:hardis:config",
|
|
215
|
+
"get:config:hardis"
|
|
225
216
|
]
|
|
226
217
|
},
|
|
227
|
-
"hardis:
|
|
218
|
+
"hardis:auth:login": {
|
|
228
219
|
"aliases": [],
|
|
229
220
|
"args": {},
|
|
230
|
-
"description": "
|
|
221
|
+
"description": "Login to salesforce org",
|
|
231
222
|
"examples": [
|
|
232
|
-
"$ sf hardis:
|
|
223
|
+
"$ sf hardis:auth:login",
|
|
224
|
+
"CI=true sf hardis:auth:login"
|
|
233
225
|
],
|
|
234
226
|
"flags": {
|
|
235
227
|
"json": {
|
|
@@ -247,20 +239,28 @@
|
|
|
247
239
|
"multiple": false,
|
|
248
240
|
"type": "option"
|
|
249
241
|
},
|
|
250
|
-
"
|
|
251
|
-
"char": "
|
|
252
|
-
"description": "
|
|
253
|
-
"name": "
|
|
254
|
-
"default": "project",
|
|
242
|
+
"instanceurl": {
|
|
243
|
+
"char": "r",
|
|
244
|
+
"description": "URL of org instance",
|
|
245
|
+
"name": "instanceurl",
|
|
255
246
|
"hasDynamicHelp": false,
|
|
256
247
|
"multiple": false,
|
|
257
|
-
"options": [
|
|
258
|
-
"project",
|
|
259
|
-
"branch",
|
|
260
|
-
"user"
|
|
261
|
-
],
|
|
262
248
|
"type": "option"
|
|
263
249
|
},
|
|
250
|
+
"devhub": {
|
|
251
|
+
"char": "h",
|
|
252
|
+
"description": "Also connect associated DevHub",
|
|
253
|
+
"name": "devhub",
|
|
254
|
+
"allowNo": false,
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
},
|
|
257
|
+
"scratchorg": {
|
|
258
|
+
"char": "s",
|
|
259
|
+
"description": "Scratch org",
|
|
260
|
+
"name": "scratchorg",
|
|
261
|
+
"allowNo": false,
|
|
262
|
+
"type": "boolean"
|
|
263
|
+
},
|
|
264
264
|
"debug": {
|
|
265
265
|
"char": "d",
|
|
266
266
|
"description": "Activate debug mode (more logs)",
|
|
@@ -284,30 +284,30 @@
|
|
|
284
284
|
},
|
|
285
285
|
"hasDynamicHelp": false,
|
|
286
286
|
"hiddenAliases": [],
|
|
287
|
-
"id": "hardis:
|
|
287
|
+
"id": "hardis:auth:login",
|
|
288
288
|
"pluginAlias": "sfdx-hardis",
|
|
289
289
|
"pluginName": "sfdx-hardis",
|
|
290
290
|
"pluginType": "core",
|
|
291
291
|
"strict": true,
|
|
292
292
|
"enableJsonFlag": true,
|
|
293
|
-
"title": "
|
|
293
|
+
"title": "Login",
|
|
294
294
|
"requiresProject": false,
|
|
295
295
|
"isESM": true,
|
|
296
296
|
"relativePath": [
|
|
297
297
|
"lib",
|
|
298
298
|
"commands",
|
|
299
299
|
"hardis",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
300
|
+
"auth",
|
|
301
|
+
"login.js"
|
|
302
302
|
],
|
|
303
303
|
"aliasPermutations": [],
|
|
304
304
|
"permutations": [
|
|
305
|
-
"hardis:
|
|
306
|
-
"
|
|
307
|
-
"
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
305
|
+
"hardis:auth:login",
|
|
306
|
+
"auth:hardis:login",
|
|
307
|
+
"auth:login:hardis",
|
|
308
|
+
"hardis:login:auth",
|
|
309
|
+
"login:hardis:auth",
|
|
310
|
+
"login:auth:hardis"
|
|
311
311
|
]
|
|
312
312
|
},
|
|
313
313
|
"hardis:doc:fieldusage": {
|
|
@@ -392,7 +392,9 @@
|
|
|
392
392
|
"description": "Generates a markdown documentation from a Flow file\n \nIf [AI integration](https://sfdx-hardis.cloudity.com/salesforce-ai-setup/) is configured, documentation will contain a summary of the Flow. \n ",
|
|
393
393
|
"examples": [
|
|
394
394
|
"$ sf hardis:doc:flow2markdown",
|
|
395
|
-
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml"
|
|
395
|
+
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml",
|
|
396
|
+
"$ sf hardis:doc:flow2markdown --pdf",
|
|
397
|
+
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml --pdf"
|
|
396
398
|
],
|
|
397
399
|
"flags": {
|
|
398
400
|
"json": {
|
|
@@ -432,6 +434,12 @@
|
|
|
432
434
|
"allowNo": false,
|
|
433
435
|
"type": "boolean"
|
|
434
436
|
},
|
|
437
|
+
"pdf": {
|
|
438
|
+
"description": "Also generate the documentation in PDF format",
|
|
439
|
+
"name": "pdf",
|
|
440
|
+
"allowNo": false,
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
435
443
|
"debug": {
|
|
436
444
|
"char": "d",
|
|
437
445
|
"description": "Activate debug mode (more logs)",
|
|
@@ -762,7 +770,8 @@
|
|
|
762
770
|
"description": "Generates a markdown documentation from a SFDX project\n\n- Objects\n- Flows\n- Apex\n- Lightning Pages\n- SFDX-Hardis Config\n- Branches & Orgs\n- Installed Packages\n- Manifests\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\nGenerates markdown files will be written in **docs** folder (except README.md where a link to doc index is added)\n\n- You can customize the pages following [mkdocs-material setup documentation](https://squidfunk.github.io/mkdocs-material/setup/)\n- You can manually add new markdown files in the \"docs\" folder to extend this documentation and add references to them in \"mkdocs.yml\"\n- You can also add images in folder \"docs/assets\" and embed them in markdown files.\n\nTo read Flow documentations if your markdown reader doesn't handle MermaidJS syntax, this command could require @mermaid-js/mermaid-cli\n\n- Run `npm install @mermaid-js/mermaid-cli --global` if puppeteer works in your environment\n- It can also be run as a docker image\n\nBoth modes will be tried by default, but you can also force one of them by defining environment variable `MERMAID_MODES=docker` or `MERMAID_MODES=cli`\n\n_sfdx-hardis docker image is alpine-based and does not succeed to run mermaid/puppeteer: if you can help, please submit a PR !_\n\nIf Flow history doc always display a single state, you probably need to update your workflow configuration:\n\n- on Gitlab: Env variable [`GIT_FETCH_EXTRA_FLAGS: --depth 10000`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.gitlab-ci.yml#L11)\n- on GitHub: [`fetch-depth: 0`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.github/workflows/org-monitoring.yml#L58)\n- on Azure: [`fetchDepth: \"0\"`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/azure-pipelines.yml#L39)\n- on Bitbucket: [`step: clone: depth: full`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/bitbucket-pipelines.yml#L18)\n\n\n\n\n\n\n\n\n\n\nIf it is a sfdx-hardis CI/CD project, a diagram of the branches and orgs strategy will be generated.\n\n\n\nIf [AI integration](https://sfdx-hardis.cloudity.com/salesforce-ai-setup/) is configured, documentation will contain a summary of the Flow.\n\nIf you have a complex strategy, you might need to input property **mergeTargets** in branch-scoped sfdx-hardis.yml file to have a correct diagram.\n\n## Doc HTML Pages\n\nTo read the documentation as HTML pages, run the following code (you need [**Python**](https://www.python.org/downloads/) on your computer)\n\n```python\npip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists || python -m pip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists || py -m pip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists\nmkdocs serve -v || python -m mkdocs serve -v || py -m mkdocs serve -v\n```\n\nTo just generate HTML pages that you can host anywhere, run `mkdocs build -v || python -m mkdocs build -v || py -m mkdocs build -v`\n\n",
|
|
763
771
|
"examples": [
|
|
764
772
|
"$ sf hardis:doc:project2markdown",
|
|
765
|
-
"$ sf hardis:doc:project2markdown --with-history"
|
|
773
|
+
"$ sf hardis:doc:project2markdown --with-history",
|
|
774
|
+
"$ sf hardis:doc:project2markdown --with-history --pdf"
|
|
766
775
|
],
|
|
767
776
|
"flags": {
|
|
768
777
|
"json": {
|
|
@@ -792,6 +801,12 @@
|
|
|
792
801
|
"allowNo": false,
|
|
793
802
|
"type": "boolean"
|
|
794
803
|
},
|
|
804
|
+
"pdf": {
|
|
805
|
+
"description": "Also generate the documentation in PDF format",
|
|
806
|
+
"name": "pdf",
|
|
807
|
+
"allowNo": false,
|
|
808
|
+
"type": "boolean"
|
|
809
|
+
},
|
|
795
810
|
"debug": {
|
|
796
811
|
"char": "d",
|
|
797
812
|
"description": "Activate debug mode (more logs)",
|
|
@@ -14488,5 +14503,5 @@
|
|
|
14488
14503
|
]
|
|
14489
14504
|
}
|
|
14490
14505
|
},
|
|
14491
|
-
"version": "5.
|
|
14506
|
+
"version": "5.21.0"
|
|
14492
14507
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.21.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.0",
|
|
9
9
|
"@cparra/apexdocs": "^3.9.0",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"make-fetch-happen": "^14.0.3",
|
|
46
46
|
"markdown-toc": "^1.2.0",
|
|
47
47
|
"marked": "^14.1.4",
|
|
48
|
+
"md-to-pdf": "^5.2.4",
|
|
48
49
|
"mega-linter-runner": "^8.4.2",
|
|
49
50
|
"moment": "^2.30.1",
|
|
50
51
|
"open": "^10.1.0",
|