confirm(question, defaultAnswer, options = {}) {
        if (!this.allowPrompt || this.auto) {
            return Promise.resolve(defaultAnswer);
        }

        return this.prompt({
            type: 'confirm',
            name: 'yes',
            message: question,
            default: defaultAnswer,
            prefix: options.prefix
        }).then(answer => answer.yes);
    }
Shorthand helper to ask a simple yes/no question

@param {string} question Question to ask
@param {boolean} defaultAnswer Default answer (true or false)

@method confirm
@public