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(())
}