Sha256: e0551e50475cbc4e2969f3b68b29d998e245ac14e5ffe5579aca9b19338a5d9e
Contents?: true
Size: 681 Bytes
Versions: 21
Compression:
Stored size: 681 Bytes
Contents
const { verbose, listAppMapFiles } = require('../utils'); const FingerprintQueue = require('./fingerprintQueue'); class FingerprintDirectoryCommand { constructor(directory) { this.directory = directory; this.print = true; } async execute() { if (verbose()) { console.warn(`Fingerprinting appmaps in ${this.directory}`); } const fpQueue = new FingerprintQueue(); let count = 0; await this.files((file) => { count += 1; return fpQueue.push(file); }); await fpQueue.process(); return count; } async files(fn) { return listAppMapFiles(this.directory, fn); } } module.exports = FingerprintDirectoryCommand;
Version data entries
21 entries across 21 versions & 1 rubygems