1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Proper HTTP client

This commit is contained in:
Quentin Gliech
2022-02-10 15:33:19 +01:00
parent 2df40762a2
commit 8c36e51176
6 changed files with 306 additions and 100 deletions

View File

@@ -20,6 +20,7 @@ use mas_config::ConfigurationSection;
mod config;
mod database;
mod debug;
mod manage;
mod server;
mod templates;
@@ -40,6 +41,9 @@ enum Subcommand {
/// Templates-related commands
Templates(self::templates::Options),
/// Debug utilities
Debug(self::debug::Options),
}
#[derive(Parser, Debug)]
@@ -67,6 +71,7 @@ impl Options {
Some(S::Server(c)) => c.run(self).await,
Some(S::Manage(c)) => c.run(self).await,
Some(S::Templates(c)) => c.run(self).await,
Some(S::Debug(c)) => c.run(self).await,
None => self::server::Options::default().run(self).await,
}
}