Refactor admin appservice
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user