use crate::api::ApiClient;
use crate::output::OutputFormat;
use anyhow::Result;
use clap::Subcommand;

#[derive(Subcommand)]
pub enum MemberCommands {
    /// List members of a room
    List {
        /// Room ID
        room_id: String,
    },
}

pub async fn execute(
    command: MemberCommands,
    _api: ApiClient,
    format: OutputFormat,
) -> Result<()> {
    match command {
        MemberCommands::List { room_id } => {
            if !matches!(format, OutputFormat::Json) {
                eprintln!("Listing members of room: {}", room_id);
            }
            // TODO: Implement member listing
            Ok(())
        }
    }
}
