Merge pull request #2091 from famedly/krille/logout-command

feat: Add logout command
This commit is contained in:
Krille-chan 2025-05-13 13:43:05 +02:00 committed by GitHub
commit 9af1c563f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -470,6 +470,14 @@ extension CommandsClientExtension on Client {
stdout?.write(DefaultCommandOutput(rooms: [newRoomId]).toString());
return null;
});
addCommand('logout', (args, stdout) async {
await logout();
return null;
});
addCommand('logoutAll', (args, stdout) async {
await logoutAll();
return null;
});
}
}