tuwunel_admin/room/info/mod.rs
1mod list_joined_members;
2mod view_room_topic;
3
4use clap::Subcommand;
5use ruma::OwnedRoomId;
6use tuwunel_core::Result;
7
8use crate::admin_command_dispatch;
9
10#[admin_command_dispatch]
11#[derive(Debug, Subcommand)]
12pub(crate) enum RoomInfoCommand {
13 /// - List joined members in a room
14 ListJoinedMembers {
15 room_id: OwnedRoomId,
16
17 /// Lists only our local users in the specified room
18 #[arg(long)]
19 local_only: bool,
20 },
21
22 /// - Displays room topic
23 ///
24 /// Room topics can be huge, so this is in its
25 /// own separate command
26 ViewRoomTopic {
27 room_id: OwnedRoomId,
28 },
29}