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.

22 lines
420 B
Rust
Raw Normal View History

mod commands;
use clap::Subcommand;
2024-12-14 21:58:01 -05:00
use conduwuit::Result;
use ruma::events::room::message::RoomMessageEventContent;
2024-07-27 00:11:41 +00:00
use crate::Command;
#[derive(Debug, Subcommand)]
2024-06-23 09:55:51 +00:00
pub(super) enum CheckCommand {
AllUsers,
}
pub(super) async fn process(
command: CheckCommand,
context: &Command<'_>,
) -> Result<RoomMessageEventContent> {
Ok(match command {
| CheckCommand::AllUsers => context.check_all_users().await?,
})
}