mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
1e0b34367b
Signed-off-by: strawberry <strawberry@puppygock.gay>
20 lines
470 B
Rust
20 lines
470 B
Rust
use clap::Subcommand;
|
|
use ruma::events::room::message::RoomMessageEventContent;
|
|
|
|
use self::fsck_commands::check_all_users;
|
|
use crate::Result;
|
|
|
|
pub(crate) mod fsck_commands;
|
|
|
|
#[cfg_attr(test, derive(Debug))]
|
|
#[derive(Subcommand)]
|
|
pub(crate) enum FsckCommand {
|
|
CheckAllUsers,
|
|
}
|
|
|
|
pub(crate) async fn process(command: FsckCommand, body: Vec<&str>) -> Result<RoomMessageEventContent> {
|
|
Ok(match command {
|
|
FsckCommand::CheckAllUsers => check_all_users(body).await?,
|
|
})
|
|
}
|