1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Use stderr for prompts to better allow scripting (#14)

* Update invocations of inquirer.js prompts to output prompt to stderr.

fixes #7

* Updates to use updated typings from @types/inquirer
This commit is contained in:
Keith Kelly
2018-06-18 22:07:45 -04:00
committed by Kyle Spearrin
parent a1b0dcf8fa
commit c7160c0870
5 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ export class UnlockCommand {
async run(password: string, cmd: program.Command) {
if (password == null || password === '') {
const answer = await inquirer.prompt<any>({
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
type: 'password',
name: 'password',
message: 'Master password:',