move sign_json and verify_json admin commands to debug
these are purely debug-related commands Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
9b7dab3a57
commit
2271a56adc
4 changed files with 70 additions and 73 deletions
|
@ -1,9 +1,7 @@
|
|||
use clap::Subcommand;
|
||||
use ruma::{events::room::message::RoomMessageEventContent, RoomId, ServerName};
|
||||
|
||||
use self::federation_commands::{
|
||||
disable_room, enable_room, fetch_support_well_known, incoming_federeation, sign_json, verify_json,
|
||||
};
|
||||
use self::federation_commands::{disable_room, enable_room, fetch_support_well_known, incoming_federeation};
|
||||
use crate::Result;
|
||||
|
||||
pub(crate) mod federation_commands;
|
||||
|
@ -24,18 +22,6 @@ pub(crate) enum FederationCommand {
|
|||
room_id: Box<RoomId>,
|
||||
},
|
||||
|
||||
/// - Verify json signatures
|
||||
///
|
||||
/// This command needs a JSON blob provided in a Markdown code block below
|
||||
/// the command.
|
||||
SignJson,
|
||||
|
||||
/// - Verify json signatures
|
||||
///
|
||||
/// This command needs a JSON blob provided in a Markdown code block below
|
||||
/// the command.
|
||||
VerifyJson,
|
||||
|
||||
/// - Fetch `/.well-known/matrix/support` from the specified server
|
||||
///
|
||||
/// Despite the name, this is not a federation endpoint and does not go
|
||||
|
@ -59,8 +45,6 @@ pub(crate) async fn process(command: FederationCommand, body: Vec<&str>) -> Resu
|
|||
room_id,
|
||||
} => enable_room(body, room_id).await?,
|
||||
FederationCommand::IncomingFederation => incoming_federeation(body).await?,
|
||||
FederationCommand::SignJson => sign_json(body).await?,
|
||||
FederationCommand::VerifyJson => verify_json(body).await?,
|
||||
FederationCommand::FetchSupportWellKnown {
|
||||
server_name,
|
||||
} => fetch_support_well_known(body, server_name).await?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue