mirror of
https://github.com/actions/labeler.git
synced 2025-12-19 08:38:15 +00:00
build
This commit is contained in:
22
node_modules/prompts/lib/elements/toggle.js
generated
vendored
22
node_modules/prompts/lib/elements/toggle.js
generated
vendored
@@ -95,19 +95,19 @@ class TogglePrompt extends Prompt {
|
||||
render() {
|
||||
if (this.closed) return;
|
||||
if (this.firstRender) this.out.write(cursor.hide);
|
||||
else this.out.write(clear(this.outputText));
|
||||
super.render();
|
||||
|
||||
this.out.write(
|
||||
erase.lines(this.first ? 1 : this.msg.split(/\n/g).length) +
|
||||
cursor.to(0) + [
|
||||
style.symbol(this.done, this.aborted),
|
||||
color.bold(this.msg),
|
||||
style.delimiter(this.done),
|
||||
this.value ? this.inactive : color.cyan().underline(this.inactive),
|
||||
color.gray('/'),
|
||||
this.value ? color.cyan().underline(this.active) : this.active
|
||||
].join(' ')
|
||||
);
|
||||
this.outputText = [
|
||||
style.symbol(this.done, this.aborted),
|
||||
color.bold(this.msg),
|
||||
style.delimiter(this.done),
|
||||
this.value ? this.inactive : color.cyan().underline(this.inactive),
|
||||
color.gray('/'),
|
||||
this.value ? color.cyan().underline(this.active) : this.active
|
||||
].join(' ');
|
||||
|
||||
this.out.write(erase.line + cursor.to(0) + this.outputText);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user