MCPcopy Index your code
hub / github.com/ThatGuySam/doesitarm / buildLists

Method buildLists

build-lists.js:298–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296 // Run all listsOptions methods
297 // and store them to this.lists
298 async buildLists () {
299 console.log( 'Build Lists started', cliOptions )
300
301
302 for ( const listOptions of this.listsOptions ) {
303
304 const methodName = `Building ${listOptions.name}`
305 console.time(methodName)
306
307 const builtList = await listOptions.buildMethod()
308
309 // Run the build method to get the lists
310 this.lists[listOptions.name] = new Set( builtList )
311
312 console.timeEnd(methodName)
313 console.log(`Finished ${listOptions.name} list with ${this.lists[listOptions.name].size} items`)
314 }
315
316 console.log('Build Lists finished')
317
318 return
319 }
320
321 getListArray ( listName ) {
322 console.log(`getListArray run ${ timeRunGetListArray += 1 } times`)

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected