Files
tuwunel/src/admin/appservice/mod.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Rust
Raw Normal View History

mod commands;
use clap::Subcommand;
use tuwunel_core::Result;
use crate::admin_command_dispatch;
#[derive(Debug, Subcommand)]
2026-01-25 03:12:31 +05:00
#[admin_command_dispatch(handler_prefix = "appservice")]
pub(super) enum AppserviceCommand {
/// - Register an appservice using its registration YAML
///
/// This command needs a YAML generated by an appservice (such as a bridge),
/// which must be provided in a Markdown code block below the command.
///
/// Registering a new bridge using the ID of an existing bridge will replace
/// the old one.
Register,
/// - Unregister an appservice using its ID
///
/// You can find the ID using the `list-appservices` command.
Unregister {
/// The appservice to unregister
appservice_identifier: String,
},
/// - Show an appservice's config using its ID
///
/// You can find the ID using the `list-appservices` command.
#[clap(alias("show"))]
2026-01-25 03:12:31 +05:00
ShowConfig {
/// The appservice to show
appservice_identifier: String,
},
/// - List all the currently registered appservices
2026-01-25 03:12:31 +05:00
List,
}