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

get password

This commit is contained in:
Kyle Spearrin
2018-05-16 00:06:58 -04:00
parent 86700fe7ef
commit 8fd74688b1
2 changed files with 33 additions and 3 deletions

View File

@@ -107,10 +107,16 @@ export class Program {
program
.command('get <object> [id]')
.description('Get an object.')
.option('--uppercase', 'Include uppercase characters.')
.option('--lowercase', 'Include lowercase characters.')
.option('--number', 'Include numeric characters.')
.option('--special', 'Include special characters.')
.option('--length <length>', 'Password length.')
.action(async (object, id, cmd) => {
await this.exitIfLocked();
const command = new GetCommand(this.main.cipherService, this.main.folderService,
this.main.collectionService, this.main.totpService, this.main.syncService);
this.main.collectionService, this.main.totpService, this.main.syncService,
this.main.passwordGenerationService);
const response = await command.run(object, id, cmd);
this.processResponse(response, cmd);
});