use crate::cli::commands;
use crate::cli::error::{CliResult, ErrorFactory};
use crate::commands::run_domains;
use crate::logging::log_error;
pub async fn handle_domains(cmd: commands::DomainsCmd, debug: bool) -> CliResult<()> {
if let Err(error) = run_domains(cmd, debug).await {
let _ = log_error("domains", "Domains command failed", Some(&error)).await;
return Err(ErrorFactory::operation(
"domains",
"run domains workflow",
error,
Some("Use `xbp domains --provider cloudflare ...` for the discovery commands in this release."),
));
}
Ok(())
}