const persistence = require("../core/persistence/persistence"); module.exports.description = "Show all locks our keys have access to" module.exports.builder = (yargs) => { } module.exports.handler = (argv) => { console.log("Show all locks our keys have access to."); persistence().LoadDB() .then(db => { db.Lock.findAll() .then(locks => { console.log("locks: ", locks.map(l => { return l })); }) }) }