feige
2025-01-06 5416279140524175b03a4d45c0ed85341e90d6eb
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
 
const BooleanPrompt = require('../types/boolean');
 
class ConfirmPrompt extends BooleanPrompt {
  constructor(options) {
    super(options);
    this.default = this.options.default || (this.initial ? '(Y/n)' : '(y/N)');
  }
}
 
module.exports = ConfirmPrompt;