From f62f181136c5256424026e1e298bc586a9bbc1d0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 18 May 2018 10:58:30 -0400 Subject: [PATCH] pass in new dependencies --- src/program.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/program.ts b/src/program.ts index bc94fff3b2..7ffe95b579 100644 --- a/src/program.ts +++ b/src/program.ts @@ -262,7 +262,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.cryptoService, this.main.tokenService); const response = await command.run(object, id, cmd); this.processResponse(response); }); @@ -292,7 +292,8 @@ export class Program { }) .action(async (object, encodedJson, cmd) => { await this.exitIfLocked(); - const command = new CreateCommand(this.main.cipherService, this.main.folderService); + const command = new CreateCommand(this.main.cipherService, this.main.folderService, + this.main.tokenService, this.main.cryptoService); const response = await command.run(object, encodedJson, cmd); this.processResponse(response); }); @@ -352,7 +353,8 @@ export class Program { }) .action(async (object, id, cmd) => { await this.exitIfLocked(); - const command = new DeleteCommand(this.main.cipherService, this.main.folderService); + const command = new DeleteCommand(this.main.cipherService, this.main.folderService, + this.main.tokenService); const response = await command.run(object, id, cmd); this.processResponse(response); });