tuwunel_admin/appservice/mod.rs
1mod commands;
2
3use clap::Subcommand;
4use tuwunel_core::Result;
5
6use crate::admin_command_dispatch;
7
8#[derive(Debug, Subcommand)]
9#[admin_command_dispatch(handler_prefix = "appservice")]
10pub(super) enum AppserviceCommand {
11 /// - Register an appservice using its registration YAML
12 ///
13 /// This command needs a YAML generated by an appservice (such as a bridge),
14 /// which must be provided in a Markdown code block below the command.
15 ///
16 /// Registering a new bridge using the ID of an existing bridge will replace
17 /// the old one.
18 Register,
19
20 /// - Unregister an appservice using its ID
21 ///
22 /// You can find the ID using the `list-appservices` command.
23 Unregister {
24 /// The appservice to unregister
25 appservice_identifier: String,
26 },
27
28 /// - Show an appservice's config using its ID
29 ///
30 /// You can find the ID using the `list-appservices` command.
31 #[clap(alias("show"))]
32 ShowConfig {
33 /// The appservice to show
34 appservice_identifier: String,
35 },
36
37 /// - List all the currently registered appservices
38 List,
39}