feat: Add logout command
This commit is contained in:
parent
98102adb59
commit
65f1b68f97
|
|
@ -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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue