heroku-debug
Version:
debugging plugin for the CLI
18 lines (14 loc) • 404 B
JavaScript
const co = require('co')
const cli = require('heroku-cli-util')
const inquirer = require('inquirer')
function * run (context) {
let answer = yield inquirer.prompt({type: 'password', message: 'enter a password', name: 'password'})
cli.debug(answer)
}
module.exports = {
topic: 'debug',
command: 'prompt',
description: 'Outputs debugging info',
run: cli.command(co.wrap(run))
}