mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2024-10-23 06:57:26 +00:00
Disabled principal management in CLI + remove trailing / (fixes 595)
This commit is contained in:
parent
2d91b6a300
commit
b59f5f1a10
2 changed files with 15 additions and 14 deletions
|
@ -31,6 +31,7 @@ async fn main() -> std::io::Result<()> {
|
|||
let url = args
|
||||
.url
|
||||
.or_else(|| std::env::var("URL").ok())
|
||||
.map(|url| url.trim_end_matches('/').to_string())
|
||||
.unwrap_or_else(|| {
|
||||
eprintln!("No URL specified. Use --url or set the URL environment variable.");
|
||||
std::process::exit(1);
|
||||
|
@ -63,10 +64,10 @@ async fn main() -> std::io::Result<()> {
|
|||
command.exec(client).await;
|
||||
}
|
||||
Commands::Server(command) => command.exec(client).await,
|
||||
Commands::Account(command) => command.exec(client).await,
|
||||
/*Commands::Account(command) => command.exec(client).await,
|
||||
Commands::Domain(command) => command.exec(client).await,
|
||||
Commands::List(command) => command.exec(client).await,
|
||||
Commands::Group(command) => command.exec(client).await,
|
||||
Commands::Group(command) => command.exec(client).await,*/
|
||||
Commands::Queue(command) => command.exec(client).await,
|
||||
Commands::Report(command) => command.exec(client).await,
|
||||
}
|
||||
|
|
|
@ -29,21 +29,21 @@ pub struct Cli {
|
|||
#[derive(Subcommand)]
|
||||
pub enum Commands {
|
||||
/// Manage user accounts
|
||||
#[clap(subcommand)]
|
||||
Account(AccountCommands),
|
||||
/* #[clap(subcommand)]
|
||||
Account(AccountCommands),
|
||||
|
||||
/// Manage domains
|
||||
#[clap(subcommand)]
|
||||
Domain(DomainCommands),
|
||||
/// Manage domains
|
||||
#[clap(subcommand)]
|
||||
Domain(DomainCommands),
|
||||
|
||||
/// Manage mailing lists
|
||||
#[clap(subcommand)]
|
||||
List(ListCommands),
|
||||
|
||||
/// Manage groups
|
||||
#[clap(subcommand)]
|
||||
Group(GroupCommands),
|
||||
/// Manage mailing lists
|
||||
#[clap(subcommand)]
|
||||
List(ListCommands),
|
||||
|
||||
/// Manage groups
|
||||
#[clap(subcommand)]
|
||||
Group(GroupCommands),
|
||||
*/
|
||||
/// Import JMAP accounts and Maildir/mbox mailboxes
|
||||
#[clap(subcommand)]
|
||||
Import(ImportCommands),
|
||||
|
|
Loading…
Reference in a new issue