2024-06-16 22:26:52 +00:00
|
|
|
mod commands;
|
|
|
|
|
|
2024-04-21 19:37:52 -04:00
|
|
|
use clap::Subcommand;
|
2024-12-14 21:58:01 -05:00
|
|
|
use conduwuit::Result;
|
2024-04-21 19:37:52 -04:00
|
|
|
|
2025-01-04 16:57:07 +00:00
|
|
|
use crate::admin_command_dispatch;
|
2024-04-21 19:37:52 -04:00
|
|
|
|
2025-01-04 16:57:07 +00:00
|
|
|
#[admin_command_dispatch]
|
2024-07-24 00:13:03 +00:00
|
|
|
#[derive(Debug, Subcommand)]
|
2025-05-24 00:28:09 +01:00
|
|
|
pub enum CheckCommand {
|
2026-01-12 10:51:17 -05:00
|
|
|
/// Uses the iterator in `src/database/key_value/users.rs` to iterator over
|
|
|
|
|
/// every user in our database (remote and local). Reports total count, any
|
|
|
|
|
/// errors if there were any, etc
|
2025-01-04 16:57:07 +00:00
|
|
|
CheckAllUsers,
|
2024-04-21 19:37:52 -04:00
|
|
|
}
|