1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00
Files
browser/src/commands/sync.command.ts
2018-05-14 13:37:52 -04:00

17 lines
405 B
TypeScript

import * as program from 'commander';
import { SyncService } from 'jslib/abstractions/sync.service';
export class SyncCommand {
constructor(private syncService: SyncService) { }
async run(cmd: program.Command) {
try {
const result = await this.syncService.fullSync(false);
console.log(result);
} catch (e) {
console.log(e);
}
}
}