feat: Add logout command

This commit is contained in:
Christian Kußowski 2025-05-13 13:38:19 +02:00
parent 98102adb59
commit 65f1b68f97
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
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()); stdout?.write(DefaultCommandOutput(rooms: [newRoomId]).toString());
return null; return null;
}); });
addCommand('logout', (args, stdout) async {
await logout();
return null;
});
addCommand('logoutAll', (args, stdout) async {
await logoutAll();
return null;
});
} }
} }