const persistence = require("../core/persistence/persistence"); module.exports.description = "Show the ExtendedPublicKeys we have created" module.exports.builder = (yargs) => { } module.exports.handler = (argv) => { console.log("Show the ExtendedPublicKeys we have created"); persistence().LoadDB() .then(db => { db.ExtendedPublicKey.findAll() .then(extendedPublicKey => { console.log("Keys: ", extendedPublicKey.map(k => { return { id: k.id, name: k.name, xpub: k.xpub, derivationPath: k.derivationPath }; })); }) }) }