Skip to content

Commit 9af1c56

Browse files
authored
Merge pull request #2091 from famedly/krille/logout-command
feat: Add logout command
2 parents 98102ad + 65f1b68 commit 9af1c56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/utils/commands_extension.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,14 @@ extension CommandsClientExtension on Client {
470470
stdout?.write(DefaultCommandOutput(rooms: [newRoomId]).toString());
471471
return null;
472472
});
473+
addCommand('logout', (args, stdout) async {
474+
await logout();
475+
return null;
476+
});
477+
addCommand('logoutAll', (args, stdout) async {
478+
await logoutAll();
479+
return null;
480+
});
473481
}
474482
}
475483

0 commit comments

Comments
 (0)