immich/cli/src/commands/logout.ts
2024-01-12 07:36:27 -05:00

14 lines
352 B
TypeScript

import { BaseCommand } from '../cli/base-command';
export class Logout extends BaseCommand {
public static readonly description = 'Logout and remove persisted credentials';
public async run(): Promise<void> {
console.log('Executing logout flow...');
await this.sessionService.logout();
console.log('Successfully logged out');
}
}