1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-29 14:33:15 +00:00

[refactor(Account Switching)] Implement StateService (#424)

This commit is contained in:
Addison Beck
2021-12-28 15:38:51 -05:00
committed by GitHub
parent eb122532bd
commit 179f1dfe5d
16 changed files with 144 additions and 118 deletions

View File

@@ -152,11 +152,10 @@ export class SendProgram extends Program {
this.main.totpService,
this.main.auditService,
this.main.cryptoService,
this.main.userService,
this.main.stateService,
this.main.searchService,
this.main.apiService,
this.main.sendService,
this.main.environmentService
this.main.organizationService
);
const response = await cmd.run("template", object, null);
this.processResponse(response);
@@ -263,7 +262,7 @@ export class SendProgram extends Program {
this.main.searchService,
this.main.cryptoService
);
const cmd = new SendEditCommand(this.main.sendService, this.main.userService, getCmd);
const cmd = new SendEditCommand(this.main.sendService, this.main.stateService, getCmd);
const response = await cmd.run(encodedJson, options);
this.processResponse(response);
});
@@ -330,7 +329,7 @@ export class SendProgram extends Program {
await this.exitIfLocked();
const cmd = new SendCreateCommand(
this.main.sendService,
this.main.userService,
this.main.stateService,
this.main.environmentService
);
return await cmd.run(encodedJson, options);