ipfs
Version:
JavaScript implementation of the IPFS specification
20 lines (14 loc) • 338 B
JavaScript
const print = require('../../utils').print
module.exports = {
command: 'rm <name>',
describe: 'Remove a key',
builder: {},
handler (argv) {
argv.resolve((async () => {
const ipfs = await argv.getIpfs()
const key = await ipfs.key.rm(argv.name)
print(`${key.id} ${key.name}`)
})())
}
}