Browse Source
Do not print a new line after the prompt "message"
master
Matheus Fernandes
8 years ago
No known key found for this signature in database
GPG Key ID: DD07CA4EA7B65C4F
1 changed files with
1 additions and
1 deletions
-
lib/utils/input/prompt-bool.js
|
|
@ -55,7 +55,7 @@ module.exports = ( |
|
|
|
: defaultValue |
|
|
|
? `[${chalk.bold(yesChar.toUpperCase())}|${noChar}]` |
|
|
|
: `[${yesChar}|${chalk.bold(noChar.toUpperCase())}]`; |
|
|
|
info(`${label} ${chalk.gray(defaultText)} `); |
|
|
|
stdout.write(`${chalk.gray('>')} ${label} ${chalk.gray(defaultText)} `); |
|
|
|
stdin.on('data', onData); |
|
|
|
}); |
|
|
|
}; |
|
|
|