UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

17 lines (12 loc) 265 B
'use strict' module.exports = { command: 'gc', describe: 'Perform a garbage collection sweep on the repo.', builder: {}, handler (argv) { argv.resolve((async () => { const ipfs = await argv.getIpfs() await ipfs.repo.gc() })()) } }