1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-166] [PM-198] - Add Event Logs for CLI Actions (#6527)

* Added the DeviceType changes for windows CLI

* Event logging for CLI commands

* Changing the icons to cli icons
This commit is contained in:
ttalty
2023-11-09 15:17:25 -05:00
committed by GitHub
parent 4446c09fd2
commit 801141f90e
12 changed files with 93 additions and 14 deletions

View File

@@ -116,7 +116,8 @@ export class VaultProgram extends Program {
this.main.organizationService,
this.main.searchService,
this.main.organizationUserService,
this.main.apiService
this.main.apiService,
this.main.eventCollectionService
);
const response = await command.run(object, cmd);
@@ -189,7 +190,8 @@ export class VaultProgram extends Program {
this.main.stateService,
this.main.searchService,
this.main.apiService,
this.main.organizationService
this.main.organizationService,
this.main.eventCollectionService
);
const response = await command.run(object, id, cmd);
this.processResponse(response);
@@ -489,7 +491,11 @@ export class VaultProgram extends Program {
})
.action(async (options) => {
await this.exitIfLocked();
const command = new ExportCommand(this.main.exportService, this.main.policyService);
const command = new ExportCommand(
this.main.exportService,
this.main.policyService,
this.main.eventCollectionService
);
const response = await command.run(options);
this.processResponse(response);
});