Refactor admin appservice

This commit is contained in:
dasha_uwu
2026-01-25 03:12:31 +05:00
parent 887479d9c7
commit 01194bfc7b
2 changed files with 39 additions and 47 deletions

View File

@@ -6,7 +6,7 @@ use tuwunel_core::Result;
use crate::admin_command_dispatch;
#[derive(Debug, Subcommand)]
#[admin_command_dispatch]
#[admin_command_dispatch(handler_prefix = "appservice")]
pub(super) enum AppserviceCommand {
/// - Register an appservice using its registration YAML
///
@@ -29,12 +29,11 @@ pub(super) enum AppserviceCommand {
///
/// You can find the ID using the `list-appservices` command.
#[clap(alias("show"))]
ShowAppserviceConfig {
ShowConfig {
/// The appservice to show
appservice_identifier: String,
},
/// - List all the currently registered appservices
#[clap(alias("list"))]
ListRegistered,
List,
}