1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-15 15:53:44 +00:00

list and get organizations

This commit is contained in:
Kyle Spearrin
2018-05-18 15:26:59 -04:00
parent 7c33af769e
commit 2e8d0aaf53
6 changed files with 87 additions and 7 deletions

View File

@@ -207,6 +207,7 @@ export class Program {
writeLn(' items');
writeLn(' folders');
writeLn(' collections');
writeLn(' organizations');
writeLn('');
writeLn(' Notes:');
writeLn('');
@@ -228,7 +229,7 @@ export class Program {
.action(async (object, cmd) => {
await this.exitIfLocked();
const command = new ListCommand(this.main.cipherService, this.main.folderService,
this.main.collectionService);
this.main.collectionService, this.main.userService);
const response = await command.run(object, cmd);
this.processResponse(response);
});
@@ -250,6 +251,7 @@ export class Program {
writeLn(' attachment');
writeLn(' folder');
writeLn(' collection');
writeLn(' organization');
writeLn(' template');
writeLn('');
writeLn(' Id:');
@@ -273,7 +275,7 @@ export class Program {
await this.exitIfLocked();
const command = new GetCommand(this.main.cipherService, this.main.folderService,
this.main.collectionService, this.main.totpService, this.main.auditService,
this.main.cryptoService, this.main.tokenService);
this.main.cryptoService, this.main.tokenService, this.main.userService);
const response = await command.run(object, id, cmd);
this.processResponse(response);
});