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

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

15 lines
412 B
Rust
Raw Normal View History

2024-04-29 13:56:04 -07:00
use ruma::events::room::message::RoomMessageEventContent;
use crate::Result;
#[cfg_attr(test, derive(Debug))]
#[derive(clap::Subcommand)]
pub(super) enum TesterCommands {
2024-04-29 13:56:04 -07:00
Tester,
}
pub(super) async fn process(command: TesterCommands, _body: Vec<&str>) -> Result<RoomMessageEventContent> {
2024-04-29 13:56:04 -07:00
Ok(match command {
2024-05-09 15:59:08 -07:00
TesterCommands::Tester => RoomMessageEventContent::notice_plain(String::from("completed")),
2024-04-29 13:56:04 -07:00
})
}