async customLogs(text, cb) { const {cli} = require('cli-ux') const showLogs = this.debug const log = this.log const error = this.error if (!showLogs) { cli.action.start(text) } else { log(text) } return new Promise(async (resolve, reject) => { await cb(resolve, reject, showLogs) }).then(result => { if (!showLogs) { cli.action.stop(result.done) } else { log('---') } return result.code },(result) => { cli.action.stop('-') error(result.done,{exit:result.code}) }) }