Add a subcommand to check server features

This commit is contained in:
Marc Plano-Lesay 2024-11-04 15:09:18 +11:00
parent c141153ad1
commit 0cd998a7a6
6 changed files with 221 additions and 25 deletions

View file

@ -6,6 +6,7 @@ use clap::Parser;
use color_eyre::eyre::{Result, WrapErr};
use color_eyre::Section;
use commands::missing_date_of_birth::missing_date_of_birth;
use commands::server_features::server_features;
use commands::server_version::server_version;
use commands::sync_date_of_birth::sync_date_of_birth;
use config::Config;
@ -62,6 +63,7 @@ async fn main() -> Result<()> {
}
},
Commands::Server { server_command } => match server_command {
ServerCommands::Features {} => server_features(&client).await,
ServerCommands::Version {} => server_version(&client).await,
},
}