1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

update self

This commit is contained in:
Kyle Spearrin
2018-05-22 17:36:54 -04:00
parent 2f2a18d9ae
commit 276affd8eb
4 changed files with 45 additions and 2 deletions

View File

@@ -466,6 +466,7 @@ export class Program {
program
.command('update')
.description('Check for updates.')
.option('--self', 'Attempt to automatically update self.')
.on('--help', () => {
writeLn('\n Notes:');
writeLn('');
@@ -477,9 +478,10 @@ export class Program {
writeLn('');
writeLn(' bw update');
writeLn(' bw update --raw');
writeLn(' bw update --self');
writeLn('', true);
})
.action(async (object, id, cmd) => {
.action(async (cmd) => {
const command = new UpdateCommand(this.main.platformUtilsService);
const response = await command.run(cmd);
this.processResponse(response);