allow selecting a subset of rooms

This can make debugging a specific room much easier/faster.
This commit is contained in:
Charles Hall 2024-11-03 11:34:15 -08:00
parent b1e14fad5c
commit aa49b111ed
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 32 additions and 13 deletions

View file

@ -6,6 +6,7 @@
use std::path::PathBuf;
use clap::{Parser, Subcommand};
use ruma::OwnedRoomId;
use crate::{
config::{default_tracing_filter, EnvFilterClone, LogFormat},
@ -107,6 +108,12 @@ pub(crate) struct GetRoomStatesArgs {
#[clap(long, short)]
pub(crate) recompute: bool,
/// Limit the output to a subset of rooms by their IDs
///
/// This option can be specified multiple times.
#[clap(long, short)]
pub(crate) select: Vec<OwnedRoomId>,
#[clap(flatten)]
observability: ObservabilityArgs,
}