@salesforce/plugin-command-reference 2.1.1 → 2.2.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 +73 -105
- package/LICENSE.txt +1 -1
- package/lib/commands/commandreference/generate.js +7 -6
- package/lib/commands/commandreference/generate.js.map +1 -1
- package/lib/ditamap/ditamap.js +5 -4
- package/lib/ditamap/ditamap.js.map +1 -1
- package/lib/docs.js +2 -2
- package/lib/docs.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +103 -102
package/CHANGELOG.md
CHANGED
|
@@ -2,120 +2,112 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.2.0](https://github.com/salesforcecli/plugin-command-reference/compare/v2.1.1...v2.2.0) (2022-03-08)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- update dependencies ([289c50c](https://github.com/salesforcecli/plugin-command-reference/commit/289c50c026efae4e5708ba9d14c67dac29a9b392))
|
|
10
|
+
|
|
5
11
|
### [2.1.1](https://github.com/salesforcecli/plugin-command-reference/compare/v2.1.0...v2.1.1) (2021-10-13)
|
|
6
12
|
|
|
7
13
|
## [2.1.0](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.12...v2.1.0) (2021-10-07)
|
|
8
14
|
|
|
9
|
-
|
|
10
15
|
### Features
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
- add --all ([#38](https://github.com/salesforcecli/plugin-command-reference/issues/38)) ([ecf8fb2](https://github.com/salesforcecli/plugin-command-reference/commit/ecf8fb2539c553aa4acb43206e6bd5bc7d27e6e2))
|
|
13
18
|
|
|
14
19
|
### [2.0.12](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.11...v2.0.12) (2021-10-01)
|
|
15
20
|
|
|
16
|
-
|
|
17
21
|
### Bug Fixes
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
- bump to GA deps ([#37](https://github.com/salesforcecli/plugin-command-reference/issues/37)) ([0f0644f](https://github.com/salesforcecli/plugin-command-reference/commit/0f0644f9298f44eec86c0210cf9bce267b3c3cfc))
|
|
20
24
|
|
|
21
25
|
### [2.0.11](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.10...v2.0.11) (2021-09-20)
|
|
22
26
|
|
|
23
|
-
|
|
24
27
|
### Bug Fixes
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
- stop generating main topic intro ([ba42e7f](https://github.com/salesforcecli/plugin-command-reference/commit/ba42e7fc66ca88b64658c9b88f9a7209a6953b55))
|
|
27
30
|
|
|
28
31
|
### [2.0.10](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.9...v2.0.10) (2021-09-16)
|
|
29
32
|
|
|
30
|
-
|
|
31
33
|
### Bug Fixes
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
- change title/shortdesc of main ditamap so it says "sf" ([48f183e](https://github.com/salesforcecli/plugin-command-reference/commit/48f183ec1be08b265f95baf6bf8bfab72cc932e1))
|
|
34
36
|
|
|
35
37
|
### [2.0.9](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.8...v2.0.9) (2021-09-16)
|
|
36
38
|
|
|
37
|
-
|
|
38
39
|
### Bug Fixes
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
- use latest sf-plugins-core ([9366b09](https://github.com/salesforcecli/plugin-command-reference/commit/9366b096cfcbe2fae41b1f6eede805c8d817570b))
|
|
41
42
|
|
|
42
43
|
### [2.0.8](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.7...v2.0.8) (2021-09-15)
|
|
43
44
|
|
|
44
|
-
|
|
45
45
|
### Bug Fixes
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
- update template files for sf ([2a0ca0a](https://github.com/salesforcecli/plugin-command-reference/commit/2a0ca0acc1744b2b090d5c7b3d3a196d127061c9))
|
|
48
|
+
- update test with new title in command XML file ([b9b14ea](https://github.com/salesforcecli/plugin-command-reference/commit/b9b14ea2a8505d153a244ebc0d1e7759e2803a40))
|
|
49
49
|
|
|
50
50
|
### [2.0.7](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.6...v2.0.7) (2021-09-14)
|
|
51
51
|
|
|
52
|
-
|
|
53
52
|
### Bug Fixes
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
- improve error handling ([50a8f5a](https://github.com/salesforcecli/plugin-command-reference/commit/50a8f5a7c92307ac2a0b0d3e72cc98e3e679870d))
|
|
56
55
|
|
|
57
56
|
### [2.0.6](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.5...v2.0.6) (2021-09-09)
|
|
58
57
|
|
|
59
|
-
|
|
60
58
|
### Bug Fixes
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
- don't generate xml for topics ([60e0056](https://github.com/salesforcecli/plugin-command-reference/commit/60e00563698ce8db4a12077f7866cdbe15fbdf6a))
|
|
63
61
|
|
|
64
62
|
### [2.0.5](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.4...v2.0.5) (2021-09-08)
|
|
65
63
|
|
|
66
|
-
|
|
67
64
|
### Bug Fixes
|
|
68
65
|
|
|
69
|
-
|
|
66
|
+
- use unique id ([56c946e](https://github.com/salesforcecli/plugin-command-reference/commit/56c946eab0dcb8775bd538ddc80e824aee8b7273))
|
|
70
67
|
|
|
71
68
|
### [2.0.4](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.3...v2.0.4) (2021-09-08)
|
|
72
69
|
|
|
73
|
-
|
|
74
70
|
### Bug Fixes
|
|
75
71
|
|
|
76
|
-
|
|
72
|
+
- append suffix to all filenames ([6264636](https://github.com/salesforcecli/plugin-command-reference/commit/626463690bc5e6d157949b14dc5b1966e65c5d3f))
|
|
77
73
|
|
|
78
74
|
### [2.0.3](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.2...v2.0.3) (2021-09-08)
|
|
79
75
|
|
|
80
|
-
|
|
81
76
|
### Bug Fixes
|
|
82
77
|
|
|
83
|
-
|
|
78
|
+
- populate topic command xml ([d8b61e5](https://github.com/salesforcecli/plugin-command-reference/commit/d8b61e51b41192a97de3a166011d0d494606959d))
|
|
84
79
|
|
|
85
80
|
### [2.0.2](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.1...v2.0.2) (2021-09-08)
|
|
86
81
|
|
|
87
|
-
|
|
88
82
|
### Bug Fixes
|
|
89
83
|
|
|
90
|
-
|
|
84
|
+
- update generate command reference ([d864b2d](https://github.com/salesforcecli/plugin-command-reference/commit/d864b2d5749732e1870e2f59c80c8975b028c21b))
|
|
91
85
|
|
|
92
86
|
### [2.0.1](https://github.com/salesforcecli/plugin-command-reference/compare/v2.0.0...v2.0.1) (2021-09-07)
|
|
93
87
|
|
|
94
|
-
|
|
95
88
|
### Bug Fixes
|
|
96
89
|
|
|
97
|
-
|
|
90
|
+
- use this.config ([de4a137](https://github.com/salesforcecli/plugin-command-reference/commit/de4a137d6e3e5ca8d322e5c45e3e893c6830ff40))
|
|
98
91
|
|
|
99
92
|
## [2.0.0](https://github.com/salesforcecli/plugin-command-reference/compare/v1.3.14...v2.0.0) (2021-09-07)
|
|
100
93
|
|
|
101
|
-
|
|
102
94
|
### ⚠ BREAKING CHANGES
|
|
103
95
|
|
|
104
|
-
|
|
96
|
+
- only works for sf now
|
|
105
97
|
|
|
106
|
-
|
|
98
|
+
- test: update to work with new file structure
|
|
107
99
|
|
|
108
|
-
|
|
100
|
+
- refactor: use oclif/core
|
|
109
101
|
|
|
110
|
-
|
|
102
|
+
- chore: bump to 2.0.0
|
|
111
103
|
|
|
112
|
-
|
|
104
|
+
- chore: satisfy dev-scripts
|
|
113
105
|
|
|
114
|
-
|
|
106
|
+
- chore: code review
|
|
115
107
|
|
|
116
|
-
|
|
108
|
+
- chore: regenerate yarn.lock
|
|
117
109
|
|
|
118
|
-
|
|
110
|
+
- Updates for `sf` (#34) ([6177be2](https://github.com/salesforcecli/plugin-command-reference/commit/6177be292a3895f3226951a763fe4610b5587cd0)), closes [#34](https://github.com/salesforcecli/plugin-command-reference/issues/34)
|
|
119
111
|
|
|
120
112
|
### [1.3.14](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.13...v1.3.14) (2021-08-13)
|
|
121
113
|
|
|
@@ -139,192 +131,168 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
139
131
|
|
|
140
132
|
## [1.3.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.3...v1.3.4) (2021-06-04)
|
|
141
133
|
|
|
142
|
-
|
|
143
134
|
### Bug Fixes
|
|
144
135
|
|
|
145
|
-
|
|
136
|
+
- list plug-ins and their version in a <ul> ([f0e3f20](https://github.com/forcedotcom/plugin-command-reference/commit/f0e3f201a19818bac9d714a9a3a00fd0c2721407))
|
|
146
137
|
|
|
147
138
|
## [1.3.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.2...v1.3.3) (2021-05-17)
|
|
148
139
|
|
|
149
|
-
|
|
150
140
|
### Bug Fixes
|
|
151
141
|
|
|
152
|
-
|
|
142
|
+
- async load oclif/core commands ([#26](https://github.com/forcedotcom/plugin-command-reference/issues/26)) ([caa788d](https://github.com/forcedotcom/plugin-command-reference/commit/caa788d4f0efedb5c6e598a6df32e4c65cc4f1b3))
|
|
153
143
|
|
|
154
144
|
## [1.3.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.1...v1.3.2) (2021-05-03)
|
|
155
145
|
|
|
156
|
-
|
|
157
146
|
### Bug Fixes
|
|
158
147
|
|
|
159
|
-
|
|
148
|
+
- force patch release ([9a72942](https://github.com/forcedotcom/plugin-command-reference/commit/9a72942dca2bbdb791a1f765fed067290f365254))
|
|
160
149
|
|
|
161
150
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-05-03)
|
|
162
151
|
|
|
163
|
-
|
|
164
152
|
### Bug Fixes
|
|
165
153
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
154
|
+
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
155
|
+
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
156
|
+
- bump version 1.3.2 to force release ([2d38cf5](https://github.com/forcedotcom/plugin-command-reference/commit/2d38cf5a5ed6090e51360bbcab5131e13f709893))
|
|
157
|
+
- bump version 1.3.2 to force release ([34d8c00](https://github.com/forcedotcom/plugin-command-reference/commit/34d8c001f9a33b430ea1eeabc884194815ee2d25))
|
|
158
|
+
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
159
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
160
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
173
161
|
|
|
174
162
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-30)
|
|
175
163
|
|
|
176
|
-
|
|
177
164
|
### Bug Fixes
|
|
178
165
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
166
|
+
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
167
|
+
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
168
|
+
- bump version 1.3.2 to force release ([34d8c00](https://github.com/forcedotcom/plugin-command-reference/commit/34d8c001f9a33b430ea1eeabc884194815ee2d25))
|
|
169
|
+
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
170
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
171
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
185
172
|
|
|
186
173
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
187
174
|
|
|
188
|
-
|
|
189
175
|
### Bug Fixes
|
|
190
176
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
177
|
+
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
178
|
+
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
179
|
+
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
180
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
181
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
196
182
|
|
|
197
183
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
198
184
|
|
|
199
|
-
|
|
200
185
|
### Bug Fixes
|
|
201
186
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
187
|
+
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
188
|
+
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
189
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
190
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
206
191
|
|
|
207
192
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
208
193
|
|
|
209
|
-
|
|
210
194
|
### Bug Fixes
|
|
211
195
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
196
|
+
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
197
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
198
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
215
199
|
|
|
216
200
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-26)
|
|
217
201
|
|
|
218
|
-
|
|
219
202
|
### Bug Fixes
|
|
220
203
|
|
|
221
|
-
|
|
222
|
-
|
|
204
|
+
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
205
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
223
206
|
|
|
224
207
|
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-26)
|
|
225
208
|
|
|
226
|
-
|
|
227
209
|
### Bug Fixes
|
|
228
210
|
|
|
229
|
-
|
|
211
|
+
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
230
212
|
|
|
231
213
|
# [1.3.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.6...v1.3.0) (2021-02-02)
|
|
232
214
|
|
|
233
|
-
|
|
234
215
|
### Features
|
|
235
216
|
|
|
236
|
-
|
|
217
|
+
- default to current working directory when no plugins are provided ([#15](https://github.com/forcedotcom/plugin-command-reference/issues/15)) ([57a66b2](https://github.com/forcedotcom/plugin-command-reference/commit/57a66b21093f896adc69d71a3025679770e6e7ad))
|
|
237
218
|
|
|
238
219
|
## [1.2.6](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.5...v1.2.6) (2021-02-01)
|
|
239
220
|
|
|
240
|
-
|
|
241
221
|
### Bug Fixes
|
|
242
222
|
|
|
243
|
-
|
|
223
|
+
- remove note about "sfdx force:doc:commands:list" ([2378f39](https://github.com/forcedotcom/plugin-command-reference/commit/2378f39a88923c294a2a2cb8c002372e85e819cf))
|
|
244
224
|
|
|
245
225
|
## [1.2.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.4...v1.2.5) (2021-02-01)
|
|
246
226
|
|
|
247
|
-
|
|
248
227
|
### Bug Fixes
|
|
249
228
|
|
|
250
|
-
|
|
229
|
+
- Add list of other plugins as a top-level topic ([800d797](https://github.com/forcedotcom/plugin-command-reference/commit/800d7973a9e1c29a38866b258e20c0006ecf8aa2))
|
|
251
230
|
|
|
252
231
|
## [1.2.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.3...v1.2.4) (2021-01-20)
|
|
253
232
|
|
|
254
|
-
|
|
255
233
|
### Bug Fixes
|
|
256
234
|
|
|
257
|
-
|
|
235
|
+
- remove <ph id="topic-title"> ([2180c1a](https://github.com/forcedotcom/plugin-command-reference/commit/2180c1aaf310fb9cfbda2b947e5f5b77bdf3e226))
|
|
258
236
|
|
|
259
237
|
## [1.2.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.2...v1.2.3) (2020-11-05)
|
|
260
238
|
|
|
261
|
-
|
|
262
239
|
### Bug Fixes
|
|
263
240
|
|
|
264
|
-
|
|
241
|
+
- fix rel notes link to point to main branch ([663483b](https://github.com/forcedotcom/plugin-command-reference/commit/663483bd3aab0f40c68ac6b6327c34a4edce1014))
|
|
265
242
|
|
|
266
243
|
## [1.2.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.1...v1.2.2) (2020-10-28)
|
|
267
244
|
|
|
268
|
-
|
|
269
245
|
### Bug Fixes
|
|
270
246
|
|
|
271
|
-
|
|
247
|
+
- rearrange command xml, rename setup guide, fix rn link ([b1ad787](https://github.com/forcedotcom/plugin-command-reference/commit/b1ad7874958bd2cbe38f19896cfc5964da213488))
|
|
272
248
|
|
|
273
249
|
## [1.2.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.0...v1.2.1) (2020-10-27)
|
|
274
250
|
|
|
275
|
-
|
|
276
251
|
### Bug Fixes
|
|
277
252
|
|
|
278
|
-
|
|
253
|
+
- don't duplicate examples ([cd6328b](https://github.com/forcedotcom/plugin-command-reference/commit/cd6328b5cbc4a58f11d309acade7a67513acaf58))
|
|
279
254
|
|
|
280
255
|
# [1.2.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.5...v1.2.0) (2020-10-21)
|
|
281
256
|
|
|
282
|
-
|
|
283
257
|
### Features
|
|
284
258
|
|
|
285
|
-
|
|
259
|
+
- add aliases and examples ([aaf61ad](https://github.com/forcedotcom/plugin-command-reference/commit/aaf61adf3508f69d899898876f03154218ff5a9b))
|
|
286
260
|
|
|
287
261
|
## [1.1.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.4...v1.1.5) (2020-10-01)
|
|
288
262
|
|
|
289
|
-
|
|
290
263
|
### Bug Fixes
|
|
291
264
|
|
|
292
|
-
|
|
265
|
+
- correct help ([b75dd61](https://github.com/forcedotcom/plugin-command-reference/commit/b75dd61281ec1671e20f9a52078da642ede2e0a6))
|
|
293
266
|
|
|
294
267
|
## [1.1.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.3...v1.1.4) (2020-10-01)
|
|
295
268
|
|
|
296
|
-
|
|
297
269
|
### Bug Fixes
|
|
298
270
|
|
|
299
|
-
|
|
271
|
+
- ensure unique ids ([d51f193](https://github.com/forcedotcom/plugin-command-reference/commit/d51f19350bab150da23575bfa27e94e467df99d6))
|
|
300
272
|
|
|
301
273
|
## [1.1.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.2...v1.1.3) (2020-08-12)
|
|
302
274
|
|
|
303
|
-
|
|
304
275
|
### Bug Fixes
|
|
305
276
|
|
|
306
|
-
|
|
277
|
+
- put back multiple flag descriptions ([4c340a8](https://github.com/forcedotcom/plugin-command-reference/commit/4c340a8f414d2e892e135797754883db040ff89a))
|
|
307
278
|
|
|
308
279
|
## [1.1.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.1...v1.1.2) (2020-08-12)
|
|
309
280
|
|
|
310
|
-
|
|
311
281
|
### Bug Fixes
|
|
312
282
|
|
|
313
|
-
|
|
283
|
+
- return parameters ([c713fd0](https://github.com/forcedotcom/plugin-command-reference/commit/c713fd0f7d3f93f64a7f76b9a430d43aeaca875f))
|
|
314
284
|
|
|
315
285
|
## [1.1.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.0...v1.1.1) (2020-08-06)
|
|
316
286
|
|
|
317
|
-
|
|
318
287
|
### Bug Fixes
|
|
319
288
|
|
|
320
|
-
|
|
289
|
+
- no multiline in description ([0b846b7](https://github.com/forcedotcom/plugin-command-reference/commit/0b846b7931a35e1cad4956fa918ece30650944f9))
|
|
321
290
|
|
|
322
291
|
# [1.1.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.7...v1.1.0) (2020-07-29)
|
|
323
292
|
|
|
324
|
-
|
|
325
293
|
### Features
|
|
326
294
|
|
|
327
|
-
|
|
295
|
+
- support no long description ([4b5dabc](https://github.com/forcedotcom/plugin-command-reference/commit/4b5dabc7acc30bd689bda110484e2c0e345d64da))
|
|
328
296
|
|
|
329
297
|
## [1.0.7](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.6...v1.0.7) (2020-03-11)
|
|
330
298
|
|
package/LICENSE.txt
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const os = require("os");
|
|
10
10
|
const path = require("path");
|
|
11
|
+
const fs_extra_1 = require("fs-extra");
|
|
11
12
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
12
13
|
const core_1 = require("@oclif/core");
|
|
13
14
|
const core_2 = require("@salesforce/core");
|
|
@@ -27,12 +28,12 @@ class CommandReferenceGenerate extends sf_plugins_core_1.SfCommand {
|
|
|
27
28
|
let pluginNames;
|
|
28
29
|
if (!flags.plugins && !flags.all) {
|
|
29
30
|
const pJsonPath = path.join(process.cwd(), 'package.json');
|
|
30
|
-
if (await
|
|
31
|
-
const packageJson = await
|
|
31
|
+
if (await (0, fs_extra_1.pathExists)(pJsonPath)) {
|
|
32
|
+
const packageJson = await (0, fs_extra_1.readJSON)(pJsonPath);
|
|
32
33
|
pluginNames = [(0, ts_types_1.getString)(packageJson, 'name')];
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
|
-
throw new core_2.
|
|
36
|
+
throw new core_2.SfError("No plugins provided. Provide the '--plugins' flag or cd into a directory that contains a valid oclif plugin.");
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
else if (flags.all) {
|
|
@@ -56,7 +57,7 @@ class CommandReferenceGenerate extends sf_plugins_core_1.SfCommand {
|
|
|
56
57
|
pluginName = `@salesforce/plugin-${pluginName}`;
|
|
57
58
|
plugin = this.getPlugin(pluginName);
|
|
58
59
|
if (!plugin) {
|
|
59
|
-
throw new core_2.
|
|
60
|
+
throw new core_2.SfError(`Plugin ${name} or ${pluginName} not found. Is it installed?`);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
return pluginName;
|
|
@@ -86,7 +87,7 @@ class CommandReferenceGenerate extends sf_plugins_core_1.SfCommand {
|
|
|
86
87
|
await docs.build(await this.loadCommands());
|
|
87
88
|
this.log(`\nWrote generated doc to ${ditamap_1.Ditamap.outputDir}`);
|
|
88
89
|
if (flags.erroronwarnings && warnings.length > 0) {
|
|
89
|
-
throw new core_2.
|
|
90
|
+
throw new core_2.SfError(`Found ${warnings.length} warnings.`);
|
|
90
91
|
}
|
|
91
92
|
return { warnings };
|
|
92
93
|
}
|
|
@@ -101,7 +102,7 @@ class CommandReferenceGenerate extends sf_plugins_core_1.SfCommand {
|
|
|
101
102
|
for (const plugin of plugins) {
|
|
102
103
|
const masterPlugin = this.getPlugin(plugin);
|
|
103
104
|
if (!masterPlugin) {
|
|
104
|
-
throw new core_2.
|
|
105
|
+
throw new core_2.SfError(`Plugin ${plugin} not found. Is it installed?`);
|
|
105
106
|
}
|
|
106
107
|
pluginToParentPlugin[masterPlugin.name] = masterPlugin.name;
|
|
107
108
|
resolveChildPlugins(masterPlugin);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/commandreference/generate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,6BAA6B;AAC7B,iEAAwD;AACxD,sCAAoC;AAEpC,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/commandreference/generate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,6BAA6B;AAC7B,uCAAgD;AAChD,iEAAwD;AACxD,sCAAoC;AAEpC,2CAAqD;AACrD,mD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QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,SAAS,EAAE,CAAC,SAAS,CAAC;KACvB,CAAC;IACF,gBAAgB,EAAE,YAAK,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;QAChE,OAAO,EAAE,iBAAO,CAAC,MAAM;KACxB,CAAC;IACF,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE,CAAC;IACpF,eAAe,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC,EAAE,CAAC;CACtG,CAAC"}
|
package/lib/ditamap/ditamap.js
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Ditamap = void 0;
|
|
10
10
|
const path_1 = require("path");
|
|
11
|
-
const
|
|
11
|
+
const fs = require("fs/promises");
|
|
12
|
+
const mkdirp = require("mkdirp");
|
|
12
13
|
const debugCreator = require("debug");
|
|
13
14
|
const hb = require("handlebars");
|
|
14
15
|
const debug = debugCreator('commandreference');
|
|
@@ -55,9 +56,9 @@ class Ditamap {
|
|
|
55
56
|
return this.destination;
|
|
56
57
|
}
|
|
57
58
|
async write() {
|
|
58
|
-
await
|
|
59
|
+
await mkdirp((0, path_1.dirname)(this.destination));
|
|
59
60
|
const output = await this.transformToDitamap();
|
|
60
|
-
await
|
|
61
|
+
await fs.writeFile(this.destination, output);
|
|
61
62
|
}
|
|
62
63
|
formatParagraphs(textToFormat) {
|
|
63
64
|
return textToFormat ? textToFormat.split('\n').filter((n) => n !== '') : [];
|
|
@@ -71,7 +72,7 @@ class Ditamap {
|
|
|
71
72
|
*/
|
|
72
73
|
async transformToDitamap() {
|
|
73
74
|
debug(`Generating ${this.destination} from ${this.getTemplateFileName()}`);
|
|
74
|
-
const src = await
|
|
75
|
+
const src = await fs.readFile(this.source, 'utf8');
|
|
75
76
|
const template = hb.compile(src);
|
|
76
77
|
return template(this.data);
|
|
77
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ditamap.js","sourceRoot":"","sources":["../../src/ditamap/ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"ditamap.js","sourceRoot":"","sources":["../../src/ditamap/ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAAqC;AACrC,kCAAkC;AAClC,iCAAiC;AAEjC,sCAAsC;AACtC,iCAAiC;AAEjC,MAAM,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC;AAE/C,EAAE,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;AAC7D,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvD,EAAE,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,GAAG,OAAO,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC3D,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC;AACH,EAAE,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,GAAG,OAAO,EAAE,EAAE;IAC3C,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,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EH,0BAyEC;AAxEe,cAAM,GAAG,SAAS,CAAC;AAEnB,oBAAY,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC"}
|
package/lib/docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Docs = void 0;
|
|
10
|
-
const
|
|
10
|
+
const mkdirp = require("mkdirp");
|
|
11
11
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
12
12
|
const chalk = require("chalk");
|
|
13
13
|
const base_ditamap_1 = require("./ditamap/base-ditamap");
|
|
@@ -30,7 +30,7 @@ class Docs {
|
|
|
30
30
|
}
|
|
31
31
|
async build(commands) {
|
|
32
32
|
// Create if doesn't exist
|
|
33
|
-
await
|
|
33
|
+
await mkdirp(this.outputDir);
|
|
34
34
|
await this.populateTemplate(commands);
|
|
35
35
|
}
|
|
36
36
|
async populateTopic(topic, subtopics) {
|
package/lib/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iCAAiC;AAEjC,mDAS8B;AAC9B,+BAA+B;AAC/B,yDAAqD;AACrD,2DAAuD;AACvD,+CAA4C;AAC5C,6DAAyD;AACzD,2DAAuD;AACvD,mCAA4C;AAC5C,6DAAyD;AAEzD,SAAS,0BAA0B,CAAC,KAAa;IAC/C,cAAM,CAAC,IAAI,CACT,SAAS,EACT,yBAAyB,KAAK,CAAC,IAAI,CACjC,KAAK,CACN,+GAA+G,CACjH,CAAC;AACJ,CAAC;AAED,MAAa,IAAI;IACf,YACU,SAAiB,EACjB,OAAgB,EAChB,MAAe,EACf,SAA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ED,+GAA+G;gBAC/G,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;aACzC;SACF;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBAC5B,+FAA+F;gBAC/F,OAAO,WAAW,CAAC;aACpB;iBAAM;gBACL,IAAI,eAAe,KAAK,CAAC,EAAE;oBACzB,cAAM,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,IAAI,gCAAgC,SAAS,EAAE,CAAC,CAAC;iBACtF;qBAAM;oBACL,kGAAkG;oBAClG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE;wBAC5B,WAAW,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;wBAC9C,WAAW,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,IAAA,iBAAS,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;qBACzF;iBACF;aACF;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,KAAa,EAAE,QAAgB,EAAE,OAAmB,EAAE,WAAoB;QACtG,oCAAoC;QACpC,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAClC,OAAO,EAAE,CAAC;SACX;QAED,MAAM,cAAc,GAAG,IAAI,iBAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QAC1E,MAAM,cAAc,CAAC,KAAK,EAAE,CAAC;QAC7B,OAAO,cAAc,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;CACF;AAjND,oBAiNC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.
|
|
1
|
+
{"version":"2.2.0","commands":{"commandreference:generate":{"id":"commandreference:generate","description":"generate the command reference guide located","strict":true,"pluginName":"@salesforce/plugin-command-reference","pluginAlias":"@salesforce/plugin-command-reference","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"output directory to put generated files","multiple":false,"default":"./tmp/root"},"plugins":{"name":"plugins","type":"option","char":"p","description":"comma separated list of plugin names to be part of the generation. Defaults to the oclif plugin in the current working directory","multiple":true,"exclusive":["all"]},"all":{"name":"all","type":"boolean","char":"a","description":"include all relevant plugins in the generation","allowNo":false,"exclusive":["plugins"]},"ditamap-suffix":{"name":"ditamap-suffix","type":"option","char":"s","description":"unique suffix to append to generated ditamap","multiple":false,"default":"unified"},"hidden":{"name":"hidden","type":"boolean","description":"show hidden commands","allowNo":false},"erroronwarnings":{"name":"erroronwarnings","type":"boolean","description":"fail the command if there are any warnings","allowNo":false}},"args":[],"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
|
package/package.json
CHANGED
|
@@ -1,105 +1,106 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"@oclif/plugin-help": "^5.1.1",
|
|
19
|
-
"@salesforce/dev-config": "^2.1.2",
|
|
20
|
-
"@salesforce/dev-scripts": "^0.9.18",
|
|
21
|
-
"@salesforce/plugin-login": "^1.0.0",
|
|
22
|
-
"@salesforce/prettier-config": "^0.0.2",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^4.2.0",
|
|
24
|
-
"@typescript-eslint/parser": "^4.2.0",
|
|
25
|
-
"chai": "^4.2.0",
|
|
26
|
-
"eslint": "^6.8.0",
|
|
27
|
-
"eslint-config-prettier": "^6.11.0",
|
|
28
|
-
"eslint-config-salesforce": "^0.1.6",
|
|
29
|
-
"eslint-config-salesforce-license": "^0.1.6",
|
|
30
|
-
"eslint-config-salesforce-typescript": "^0.2.7",
|
|
31
|
-
"eslint-plugin-header": "^3.0.0",
|
|
32
|
-
"eslint-plugin-import": "^2.20.2",
|
|
33
|
-
"eslint-plugin-jsdoc": "^27.0.3",
|
|
34
|
-
"eslint-plugin-prettier": "^3.1.3",
|
|
35
|
-
"husky": "^4.3.8",
|
|
36
|
-
"mocha": "^8.4.0",
|
|
37
|
-
"nyc": "^15.1.0",
|
|
38
|
-
"oclif": "^2.0.0-main.5",
|
|
39
|
-
"prettier": "^2.0.5",
|
|
40
|
-
"pretty-quick": "^3.1.0",
|
|
41
|
-
"shx": "^0.3.3",
|
|
42
|
-
"sinon": "10.0.0",
|
|
43
|
-
"ts-node": "^10.0.0",
|
|
44
|
-
"typescript": "^4.1.3"
|
|
45
|
-
},
|
|
46
|
-
"engines": {
|
|
47
|
-
"node": ">=12.0.0"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"/lib",
|
|
51
|
-
"/messages",
|
|
52
|
-
"/npm-shrinkwrap.json",
|
|
53
|
-
"/oclif.manifest.json",
|
|
54
|
-
"/templates"
|
|
55
|
-
],
|
|
56
|
-
"homepage": "https://github.com/salesforcecli/plugin-command-reference",
|
|
57
|
-
"keywords": [
|
|
58
|
-
"sfdx-plugin"
|
|
59
|
-
],
|
|
60
|
-
"license": "BSD-3-Clause",
|
|
61
|
-
"oclif": {
|
|
62
|
-
"commands": "./lib/commands",
|
|
63
|
-
"bin": "sf",
|
|
64
|
-
"topicSeparator": " ",
|
|
65
|
-
"topics": {
|
|
66
|
-
"commandreference": {
|
|
67
|
-
"description": "generate the Salesforce CLI command reference guide.",
|
|
68
|
-
"longDescription": "xx"
|
|
69
|
-
}
|
|
2
|
+
"name": "@salesforce/plugin-command-reference",
|
|
3
|
+
"description": "Generate the Salesforce CLI command reference guide",
|
|
4
|
+
"version": "2.2.0",
|
|
5
|
+
"author": "Salesforce",
|
|
6
|
+
"bugs": "https://github.com/salesforcecli/plugin-command-reference/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@oclif/core": "^1.5.2",
|
|
9
|
+
"@salesforce/core": "^3.7.9",
|
|
10
|
+
"@salesforce/kit": "^1.5.17",
|
|
11
|
+
"@salesforce/sf-plugins-core": "^1.6.0",
|
|
12
|
+
"@salesforce/ts-types": "^1.5.20",
|
|
13
|
+
"chalk": "^3.0.0",
|
|
14
|
+
"fs-extra": "^10.0.1",
|
|
15
|
+
"handlebars": "^4.7.7",
|
|
16
|
+
"mkdirp": "^1.0.4",
|
|
17
|
+
"tslib": "^2"
|
|
70
18
|
},
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@oclif/plugin-help": "^5.1.1",
|
|
21
|
+
"@salesforce/dev-config": "^3.0.1",
|
|
22
|
+
"@salesforce/dev-scripts": "^2.0.1",
|
|
23
|
+
"@salesforce/plugin-login": "^1.0.0",
|
|
24
|
+
"@salesforce/prettier-config": "^0.0.2",
|
|
25
|
+
"@types/fs-extra": "^9.0.13",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^4.2.0",
|
|
27
|
+
"@typescript-eslint/parser": "^4.2.0",
|
|
28
|
+
"chai": "^4.2.0",
|
|
29
|
+
"eslint": "^6.8.0",
|
|
30
|
+
"eslint-config-prettier": "^6.11.0",
|
|
31
|
+
"eslint-config-salesforce": "^0.1.6",
|
|
32
|
+
"eslint-config-salesforce-license": "^0.1.6",
|
|
33
|
+
"eslint-config-salesforce-typescript": "^0.2.7",
|
|
34
|
+
"eslint-plugin-header": "^3.0.0",
|
|
35
|
+
"eslint-plugin-import": "^2.20.2",
|
|
36
|
+
"eslint-plugin-jsdoc": "^27.0.3",
|
|
37
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
38
|
+
"husky": "^7.0.4",
|
|
39
|
+
"mocha": "^9.1.3",
|
|
40
|
+
"nyc": "^15.1.0",
|
|
41
|
+
"oclif": "^2.5.0",
|
|
42
|
+
"prettier": "^2.0.5",
|
|
43
|
+
"pretty-quick": "^3.1.0",
|
|
44
|
+
"shx": "^0.3.3",
|
|
45
|
+
"sinon": "10.0.0",
|
|
46
|
+
"ts-node": "^10.0.0",
|
|
47
|
+
"typescript": "^4.1.3"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=12.0.0"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"/lib",
|
|
54
|
+
"/messages",
|
|
55
|
+
"/npm-shrinkwrap.json",
|
|
56
|
+
"/oclif.manifest.json",
|
|
57
|
+
"/templates"
|
|
58
|
+
],
|
|
59
|
+
"homepage": "https://github.com/salesforcecli/plugin-command-reference",
|
|
60
|
+
"keywords": [
|
|
61
|
+
"sfdx-plugin"
|
|
62
|
+
],
|
|
63
|
+
"license": "BSD-3-Clause",
|
|
64
|
+
"oclif": {
|
|
65
|
+
"commands": "./lib/commands",
|
|
66
|
+
"bin": "sf",
|
|
67
|
+
"topicSeparator": " ",
|
|
68
|
+
"topics": {
|
|
69
|
+
"commandreference": {
|
|
70
|
+
"description": "generate the Salesforce CLI command reference guide.",
|
|
71
|
+
"longDescription": "xx"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"devPlugins": [
|
|
75
|
+
"@oclif/plugin-help",
|
|
76
|
+
"@salesforce/plugin-login"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"repository": "salesforcecli/plugin-command-reference",
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build": "sf-build",
|
|
82
|
+
"clean": "sf-clean",
|
|
83
|
+
"clean-all": "sf-clean all",
|
|
84
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
85
|
+
"command-reference": "./bin/dev commandreference:generate --plugins login --outputdir test/tmp",
|
|
86
|
+
"compile": "sf-compile",
|
|
87
|
+
"docs": "sf-docs",
|
|
88
|
+
"format": "sf-format",
|
|
89
|
+
"lint": "sf-lint",
|
|
90
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
91
|
+
"posttest": "yarn lint",
|
|
92
|
+
"prepack": "sf-prepack",
|
|
93
|
+
"prepare": "sf-install",
|
|
94
|
+
"pretest": "sf-compile-test && yarn command-reference",
|
|
95
|
+
"test": "sf-test",
|
|
96
|
+
"version": "oclif readme"
|
|
97
|
+
},
|
|
98
|
+
"publishConfig": {
|
|
99
|
+
"access": "public"
|
|
100
|
+
},
|
|
101
|
+
"main": "lib/index.js",
|
|
102
|
+
"sfdx": {
|
|
103
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-command-reference/2.2.0.crt",
|
|
104
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-command-reference/2.2.0.sig"
|
|
100
105
|
}
|
|
101
|
-
|
|
102
|
-
"publishConfig": {
|
|
103
|
-
"access": "public"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
+
}
|