Files
continuwuity/src/admin/check/mod.rs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
404 B
Rust
Raw Normal View History

mod commands;
use clap::Subcommand;
use conduit::Result;
use ruma::events::room::message::RoomMessageEventContent;
use self::commands::*;
#[derive(Debug, Subcommand)]
2024-06-23 09:55:51 +00:00
pub(super) enum CheckCommand {
AllUsers,
}
2024-06-23 09:55:51 +00:00
pub(super) async fn process(command: CheckCommand, body: Vec<&str>) -> Result<RoomMessageEventContent> {
Ok(match command {
2024-06-23 09:55:51 +00:00
CheckCommand::AllUsers => check_all_users(body).await?,
})
}