You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
275 B

4 years ago
  1. 'use strict';
  2. const BooleanPrompt = require('../types/boolean');
  3. class ConfirmPrompt extends BooleanPrompt {
  4. constructor(options) {
  5. super(options);
  6. this.default = this.options.default || (this.initial ? '(Y/n)' : '(y/N)');
  7. }
  8. }
  9. module.exports = ConfirmPrompt;