mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
feat: Add command to purge sync tokens for empty rooms
This commit is contained in:
@@ -67,4 +67,27 @@ pub enum RoomCommand {
|
||||
#[arg(value_parser)]
|
||||
room: OwnedRoomOrAliasId,
|
||||
},
|
||||
|
||||
/// - Delete sync tokens for all rooms that have no local users
|
||||
///
|
||||
/// By default, processes all empty rooms. You can use --target-disabled
|
||||
/// and/or --target-banned to exclusively process rooms matching those
|
||||
/// conditions.
|
||||
PurgeEmptyRoomTokens {
|
||||
/// Confirm you want to delete tokens from potentially many rooms
|
||||
#[arg(long)]
|
||||
yes: bool,
|
||||
|
||||
/// Only purge rooms that have federation disabled
|
||||
#[arg(long)]
|
||||
target_disabled: bool,
|
||||
|
||||
/// Only purge rooms that have been banned
|
||||
#[arg(long)]
|
||||
target_banned: bool,
|
||||
|
||||
/// Perform a dry run without actually deleting any tokens
|
||||
#[arg(long)]
|
||||
dry_run: bool,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user