xbp 10.17.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
use crate::cli::commands;
use crate::cli::error::CliResult;
use crate::commands::run_network;
use crate::logging::log_error;

pub async fn handle_network(cmd: commands::NetworkCmd, debug: bool) -> CliResult<()> {
    if let Err(e) = run_network(cmd.command, debug).await {
        let _ = log_error("network", "Network command failed", Some(&e.to_string())).await;
        return Err(e.into());
    }
    Ok(())
}