xbp 10.30.1

XBP is a zero-config build pack that can also interact with proxies, kafka, sockets, synthetic monitors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::cli::commands;
use crate::cli::error::{CliResult, ErrorFactory};
use crate::commands::run_dns;
use crate::logging::log_error;

pub async fn handle_dns(cmd: commands::DnsCmd, debug: bool) -> CliResult<()> {
    if let Err(error) = run_dns(cmd, debug).await {
        let _ = log_error("dns", "DNS command failed", Some(&error)).await;
        return Err(ErrorFactory::operation(
            "dns",
            "run DNS workflow",
            error,
            Some("Run `xbp dns providers` to inspect support, and configure Cloudflare auth with `xbp config cloudflare ...` if DNS calls fail before the API request completes."),
        ));
    }
    Ok(())
}