mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
19 lines
432 B
JavaScript
19 lines
432 B
JavaScript
'use strict';
|
|
|
|
const StringPrompt = require('../types/string');
|
|
|
|
class PasswordPrompt extends StringPrompt {
|
|
constructor(options) {
|
|
super(options);
|
|
this.cursorShow();
|
|
}
|
|
|
|
format(input = this.input) {
|
|
if (!this.keypressed) return '';
|
|
let color = this.state.submitted ? this.styles.primary : this.styles.muted;
|
|
return color(this.symbols.asterisk.repeat(input.length));
|
|
}
|
|
}
|
|
|
|
module.exports = PasswordPrompt;
|