File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
src/commands/commandreference Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 7
7
"dependencies" : {
8
8
"@salesforce/command" : " ^5.2.6" ,
9
9
"@salesforce/core" : " ^3.25.0" ,
10
+ "@types/lodash.uniqby" : " ^4.7.7" ,
10
11
"chalk" : " ^3.0.0" ,
11
12
"handlebars" : " 4.7.7" ,
13
+ "lodash.uniqby" : " ^4.7.0" ,
12
14
"shelljs" : " ^0.8.5" ,
13
15
"tslib" : " ^1"
14
16
},
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ import { Ditamap } from '../../ditamap/ditamap';
17
17
import { Docs } from '../../docs' ;
18
18
import { events , mergeDeep } from '../../utils' ;
19
19
20
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
21
+ const uniqBy = require ( 'lodash.uniqby' ) ;
22
+
20
23
// Initialize Messages with the current plugin directory
21
24
Messages . importMessagesDirectory ( __dirname ) ;
22
25
@@ -176,7 +179,8 @@ export default class CommandReferenceGenerate extends SfdxCommand {
176
179
return Object . assign ( { } as JsonMap , cmd ) ;
177
180
}
178
181
} ) ;
179
- return Promise . all ( promises ) ;
182
+ const commands = await Promise . all ( promises ) ;
183
+ return uniqBy ( commands , 'id' ) ;
180
184
}
181
185
182
186
private async loadCommand ( command ) {
Original file line number Diff line number Diff line change 1396
1396
dependencies :
1397
1397
" @types/node" " *"
1398
1398
1399
+ " @types/lodash.uniqby@^4.7.7 " :
1400
+ version "4.7.7"
1401
+ resolved "https://registry.yarnpkg.com/@types/lodash.uniqby/-/lodash.uniqby-4.7.7.tgz#48dbb652c41cc8fb30aa61a44174368081835ab5"
1402
+ integrity sha512-sv2g6vkCIvEUsK5/Vq17haoZaisfj2EWW8mP7QWlnKi6dByoNmeuHDDXHR7sabuDqwO4gvU7ModIL22MmnOocg==
1403
+ dependencies :
1404
+ " @types/lodash" " *"
1405
+
1399
1406
" @types/lodash@* " :
1400
1407
version "4.14.184"
1401
1408
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.184.tgz#23f96cd2a21a28e106dc24d825d4aa966de7a9fe"
@@ -6225,7 +6232,7 @@ lodash.uniq@~4.5.0:
6225
6232
lodash.uniqby@^4.7.0 :
6226
6233
version "4.7.0"
6227
6234
resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302"
6228
- integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI =
6235
+ integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww= =
6229
6236
6230
6237
lodash.without@~4.4.0 :
6231
6238
version "4.4.0"
You can’t perform that action at this time.
0 commit comments