UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

26 lines (19 loc) 526 B
'use strict' const debug = require('debug') const log = debug('cli:config') log.error = debug('cli:config:error') const print = require('../../utils').print module.exports = { command: 'show', describe: 'Outputs the content of the config file', builder: {}, handler (argv) { argv.resolve((async () => { if (argv._handled) return argv._handled = true const ipfs = await argv.getIpfs() const config = await ipfs.config.get() print(JSON.stringify(config, null, 4)) })()) } }