1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

--passwordenv doesn't work for for unlock (#347)

* - Add passwordenv parameter to unlock command
- Add passwordfile parameter to unlock command
- Adapt help message

* Remove newline

* Add warning if passwordenv var not found

* Appease the linter

* Refactor

* Undo last commit
This commit is contained in:
Philip Kaiser
2021-07-02 22:04:07 +02:00
committed by GitHub
parent 4656b6e383
commit 47308ef240
2 changed files with 34 additions and 12 deletions

View File

@@ -202,6 +202,8 @@ export class Program extends BaseProgram {
}
this.processResponse(Response.error('Vault is locked.'), true);
})
.option('--passwordenv <passwordenv>', 'Environment variable storing your password')
.option('--passwordfile <passwordfile>', 'Path to a file containing your password as its first line')
.action(async (password, cmd) => {
if (!cmd.check) {
await this.exitIfNotAuthed();