Disabled principal management in CLI + remove trailing / (fixes 595)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user