Browse Source

Do not print a new line after the prompt "message"

master
Matheus Fernandes 8 years ago
parent
commit
f1dbdc58f6
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 2
      lib/utils/input/prompt-bool.js

2
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);
});
};

Loading…
Cancel
Save