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:
committed by
Kyle Spearrin
parent
a1b0dcf8fa
commit
c7160c0870
@@ -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:',
|
||||
|
||||
Reference in New Issue
Block a user